Search
Preparing search index...
The search index is not available
pinus-rpc
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
WS2Acceptor
Class WS2Acceptor
Hierarchy
EventEmitter
WS2Acceptor
Index
Constructors
constructor
Properties
_interval
buffer
Msg
cb
closed
gid
inited
interval
msg
Queues
rpc
Debug
Log
rpc
Logger
server
sockets
whitelist
default
Max
Listeners
Methods
add
Listener
clone
Error
close
do
Send
emit
enqueue
event
Names
flush
get
Max
Listeners
ip
Filter
listen
listener
Count
listeners
on
once
prepend
Listener
prepend
Once
Listener
process
Msg
process
Msgs
remove
All
Listeners
remove
Listener
set
Max
Listeners
listener
Count
Constructors
constructor
new WS2
Acceptor
(
opts
:
AcceptorOpts
, cb
:
function
)
:
WS2Acceptor
Parameters
opts:
AcceptorOpts
cb:
function
(
tracer
:
Tracer
, msg
?:
any
, cb
?:
Function
)
:
void
Parameters
tracer:
Tracer
Optional
msg:
any
Optional
cb:
Function
Returns
void
Returns
WS2Acceptor
Properties
_interval
_interval
:
any
buffer
Msg
buffer
Msg
:
any
cb
cb
:
any
closed
closed
:
boolean
gid
gid
:
number
inited
inited
:
boolean
interval
interval
:
number
msg
Queues
msg
Queues
:
object
Type declaration
[
key:
string
]:
any
rpc
Debug
Log
rpc
Debug
Log
:
any
rpc
Logger
rpc
Logger
:
any
server
server
:
any
sockets
sockets
:
object
Type declaration
[
key:
string
]:
any
whitelist
whitelist
:
any
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
clone
Error
clone
Error
(
origin
:
object
)
:
object
Parameters
origin:
object
msg
:
any
stack
:
Error
Returns
object
msg
:
any
stack
:
Error
close
close
(
)
:
void
Returns
void
do
Send
do
Send
(
socket
:
any
, dataObj
:
object
)
:
void
Parameters
socket:
any
dataObj:
object
Returns
void
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
enqueue
enqueue
(
socket
:
any
, acceptor
:
WS2Acceptor
, msg
:
Msg
)
:
void
Parameters
socket:
any
acceptor:
WS2Acceptor
msg:
Msg
Returns
void
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
string
|
symbol
>
flush
flush
(
acceptor
:
WS2Acceptor
)
:
void
Parameters
acceptor:
WS2Acceptor
Returns
void
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
ip
Filter
ip
Filter
(
obj
:
any
)
:
void
Parameters
obj:
any
Returns
void
listen
listen
(
port
:
any
)
:
void
Parameters
port:
any
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
[]
on
on
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
once
once
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
process
Msg
process
Msg
(
socket
:
any
, acceptor
:
WS2Acceptor
, pkg
:
AcceptorPkg
)
:
void
Parameters
socket:
any
acceptor:
WS2Acceptor
pkg:
AcceptorPkg
Returns
void
process
Msgs
process
Msgs
(
socket
:
any
, acceptor
:
WS2Acceptor
, pkgs
:
Array
<
AcceptorPkg
>
)
:
void
Parameters
socket:
any
acceptor:
WS2Acceptor
pkgs:
Array
<
AcceptorPkg
>
Returns
void
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
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
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
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Globals
WS2
Acceptor
constructor
_interval
buffer
Msg
cb
closed
gid
inited
interval
msg
Queues
rpc
Debug
Log
rpc
Logger
server
sockets
whitelist
default
Max
Listeners
add
Listener
clone
Error
close
do
Send
emit
enqueue
event
Names
flush
get
Max
Listeners
ip
Filter
listen
listener
Count
listeners
on
once
prepend
Listener
prepend
Once
Listener
process
Msg
process
Msgs
remove
All
Listeners
remove
Listener
set
Max
Listeners
listener
Count