Search
Preparing search index...
The search index is not available
@noveo/dual-rpc-ws
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
ClientSocket
Server
Class Server
Hierarchy
Server
Server
Index
Constructors
constructor
Properties
clients
options
path
Methods
add
Listener
address
close
emit
event
Names
get
Max
Listeners
handle
Upgrade
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
set
Max
Listeners
should
Handle
Constructors
constructor
new
Server
(
options
?:
ServerOptions
, callback
?:
undefined
|
(
(
)
=>
void
)
)
:
Server
Parameters
Optional
options:
ServerOptions
Optional
callback:
undefined
|
(
(
)
=>
void
)
Returns
Server
Properties
clients
clients
:
Set
<
WebSocket
>
options
options
:
ServerOptions
path
path
:
string
Methods
add
Listener
add
Listener
(
event
:
"connection"
, cb
:
(
client
:
WebSocket
)
=>
void
)
:
this
add
Listener
(
event
:
"error"
, cb
:
(
err
:
Error
)
=>
void
)
:
this
add
Listener
(
event
:
"headers"
, cb
:
(
headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
)
:
this
add
Listener
(
event
:
"close"
|
"listening"
, cb
:
(
)
=>
void
)
:
this
add
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
"connection"
cb:
(
client
:
WebSocket
)
=>
void
(
client
:
WebSocket
)
:
void
Parameters
client:
WebSocket
Returns
void
Returns
this
Parameters
event:
"error"
cb:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
this
Parameters
event:
"headers"
cb:
(
headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
(
headers
:
string
[]
, request
:
IncomingMessage
)
:
void
Parameters
headers:
string
[]
request:
IncomingMessage
Returns
void
Returns
this
Parameters
event:
"close"
|
"listening"
cb:
(
)
=>
void
(
)
:
void
Returns
void
Returns
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
address
address
(
)
:
AddressInfo
|
string
Returns
AddressInfo
|
string
close
close
(
cb
?:
undefined
|
(
(
err
?:
Error
)
=>
void
)
)
:
void
Parameters
Optional
cb:
undefined
|
(
(
err
?:
Error
)
=>
void
)
Returns
void
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
string
|
symbol
>
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
handle
Upgrade
handle
Upgrade
(
request
:
IncomingMessage
, socket
:
Socket
, upgradeHead
:
Buffer
, callback
:
(
client
:
WebSocket
)
=>
void
)
:
void
Parameters
request:
IncomingMessage
socket:
Socket
upgradeHead:
Buffer
callback:
(
client
:
WebSocket
)
=>
void
(
client
:
WebSocket
)
:
void
Parameters
client:
WebSocket
Returns
void
Returns
void
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
off
off
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
on
on
(
event
:
"connection"
, cb
:
(
this
:
Server
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
)
:
this
on
(
event
:
"error"
, cb
:
(
this
:
Server
, error
:
Error
)
=>
void
)
:
this
on
(
event
:
"headers"
, cb
:
(
this
:
Server
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
)
:
this
on
(
event
:
"close"
|
"listening"
, cb
:
(
this
:
Server
)
=>
void
)
:
this
on
(
event
:
string
|
symbol
, listener
:
(
this
:
Server
,
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
"connection"
cb:
(
this
:
Server
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
, socket
:
WebSocket
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
socket:
WebSocket
request:
IncomingMessage
Returns
void
Returns
this
Parameters
event:
"error"
cb:
(
this
:
Server
, error
:
Error
)
=>
void
(
this
:
Server
, error
:
Error
)
:
void
Parameters
this:
Server
error:
Error
Returns
void
Returns
this
Parameters
event:
"headers"
cb:
(
this
:
Server
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
, headers
:
string
[]
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
headers:
string
[]
request:
IncomingMessage
Returns
void
Returns
this
Parameters
event:
"close"
|
"listening"
cb:
(
this
:
Server
)
=>
void
(
this
:
Server
)
:
void
Parameters
this:
Server
Returns
void
Returns
this
Parameters
event:
string
|
symbol
listener:
(
this
:
Server
,
...
args
:
any
[]
)
=>
void
(
this
:
Server
,
...
args
:
any
[]
)
:
void
Parameters
this:
Server
Rest
...
args:
any
[]
Returns
void
Returns
this
once
once
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
raw
Listeners
raw
Listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
this
Parameters
Optional
event:
string
|
symbol
Returns
this
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
should
Handle
should
Handle
(
request
:
IncomingMessage
)
:
boolean
Parameters
request:
IncomingMessage
Returns
boolean
Globals
Message
Type
Client
Request
Server
Client
Options
Client
Socket
Server
constructor
clients
options
path
add
Listener
address
close
emit
event
Names
get
Max
Listeners
handle
Upgrade
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
set
Max
Listeners
should
Handle
RPCContext
Request
Params
Server
Options
Server
Stats
Id
JSONValue
Name
get
Message
Generated using
TypeDoc