Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
sockjs
Server
Interface Server
Hierarchy
EventEmitter
Server
Index
Methods
addListener
emit
installHandlers
listeners
on
once
removeAllListeners
removeListener
setMaxListeners
Methods
public
addListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
emit
(
event
:
string
, args
?:
Array<any>
)
:
boolean
Parameters
event:
string
args?:
Array<any>
optional
Returns
boolean
public
installHandlers
(
server
:
Server
, options
?:
ServerOptions
)
:
any
Parameters
server:
Server
options?:
ServerOptions
optional
Returns
any
public
listeners
(
event
:
string
)
:
Array<Function>
Parameters
event:
string
Returns
Array<Function>
public
on
(
event
:
"'connection'"
, listener
:
(conn: "sockjs".Connection) => any
)
:
Server
Parameters
event:
"'connection'"
listener:
(conn: "sockjs".Connection) => any
Returns
Server
public
on
(
event
:
string
, listener
:
Function
)
:
Server
Parameters
event:
string
listener:
Function
Returns
Server
public
once
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
removeAllListeners
(
event
?:
string
)
:
EventEmitter
Parameters
event?:
string
optional
Returns
EventEmitter
public
removeListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
setMaxListeners
(
n
:
number
)
Parameters
n:
number
Globals
NodeJS
assert
buffer
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
net
os
path
punycode
querystring
readline
repl
sockjs
stream
string_decoder
tls
tty
url
util
vm
zlib
Connection
Server
addListener
emit
installHandlers
listeners
on
once
removeAllListeners
removeListener
setMaxListeners
ServerOptions
createServer