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