Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
socket
Socket
Interface Socket
Hierarchy
EventEmitter
Socket
Index
Methods
addListener
connect
disconnect
emit
flushBuffer
listeners
of
on
once
packet
removeAllListeners
removeListener
Methods
public
addListener
(
ns
:
string
, fn
:
Function
)
:
EventEmitter
Parameters
ns:
string
fn:
Function
Returns
EventEmitter
public
connect
(
fn
:
Function
)
:
Socket
Parameters
fn:
Function
Returns
Socket
public
disconnect
(
)
:
Socket
Returns
Socket
public
emit
(
name
:
string
, data
?:
Array<any>
)
:
any
Parameters
name:
string
data?:
Array<any>
optional
Returns
any
public
flushBuffer
(
)
public
listeners
(
ns
:
string
)
:
Array<Function>
Parameters
ns:
string
Returns
Array<Function>
public
of
(
name
:
string
)
:
SocketNamespace
Parameters
name:
string
Returns
SocketNamespace
public
on
(
ns
:
string
, fn
:
Function
)
:
EventEmitter
Parameters
ns:
string
fn:
Function
Returns
EventEmitter
public
once
(
ns
:
string
, fn
:
Function
)
:
EventEmitter
Parameters
ns:
string
fn:
Function
Returns
EventEmitter
public
packet
(
data
:
any
)
:
Socket
Parameters
data:
any
Returns
Socket
public
removeAllListeners
(
ns
:
string
)
:
EventEmitter
Parameters
ns:
string
Returns
EventEmitter
public
removeListener
(
ns
:
string
, fn
:
Function
)
:
EventEmitter
Parameters
ns:
string
fn:
Function
Returns
EventEmitter
Globals
socket
EventEmitter
Socket
addListener
connect
disconnect
emit
flushBuffer
listeners
of
on
once
packet
removeAllListeners
removeListener
SocketNamespace
connect