Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
socket
Socket
Interface Socket
Index
Properties
broadcast
handshake
id
json
log
volatile
Methods
del
disconnect
emit
get
has
in
join
leave
on
send
set
to
Properties
public
broadcast
:
any
public
handshake
:
any
public
id
:
string
public
json
:
any
public
log
:
any
public
volatile
:
any
Methods
public
del
(
key
:
string
, fn
:
Function
)
:
Socket
Parameters
key:
string
fn:
Function
Returns
Socket
public
disconnect
(
)
:
Socket
Returns
Socket
public
emit
(
ev
:
any
, data
?:
Array<any>
)
:
Socket
Parameters
ev:
any
data?:
Array<any>
optional
Returns
Socket
public
get
(
key
:
string
, fn
:
Function
)
:
Socket
Parameters
key:
string
fn:
Function
Returns
Socket
public
has
(
key
:
string
, fn
:
Function
)
:
Socket
Parameters
key:
string
fn:
Function
Returns
Socket
public
in
(
room
:
string
)
:
Socket
Parameters
room:
string
Returns
Socket
public
join
(
name
:
string
, fn
:
Function
)
:
Socket
Parameters
name:
string
fn:
Function
Returns
Socket
public
leave
(
name
:
string
, fn
:
Function
)
:
Socket
Parameters
name:
string
fn:
Function
Returns
Socket
public
on
(
ns
:
string
, fn
:
Function
)
:
Socket
Parameters
ns:
string
fn:
Function
Returns
Socket
public
send
(
data
:
any
, fn
:
Function
)
:
Socket
Parameters
data:
any
fn:
Function
Returns
Socket
public
set
(
key
:
string
, value
:
any
, fn
:
Function
)
:
Socket
Parameters
key:
string
value:
any
fn:
Function
Returns
Socket
public
to
(
room
:
string
)
:
Socket
Parameters
room:
string
Returns
Socket
Globals
NodeJS
assert
buffer
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
net
os
path
punycode
querystring
readline
repl
socket
stream
string_decoder
tls
tty
url
util
vm
zlib
Socket
broadcast
handshake
id
json
log
volatile
del
disconnect
emit
get
has
in
join
leave
on
send
set
to
SocketManager
SocketNamespace
listen