Search
Preparing search index...
The search index is not available
pinus-rpc
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
WSAcceptor
Class WSAcceptor
Hierarchy
EventEmitter
WSAcceptor
Index
Constructors
constructor
Properties
_interval
buffer
Msg
cb
closed
inited
interval
msg
Queues
rpc
Debug
Log
rpc
Logger
server
sockets
whitelist
default
Max
Listeners
Methods
add
Listener
clone
Error
close
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 WSAcceptor
(
opts
:
AcceptorOpts
, cb
:
function
)
:
WSAcceptor
Parameters
opts:
AcceptorOpts
cb:
function
(
tracer
:
Tracer
, msg
?:
any
, cb
?:
Function
)
:
void
Parameters
tracer:
Tracer
Optional
msg:
any
Optional
cb:
Function
Returns
void
Returns
WSAcceptor
Properties
_interval
_interval
:
any
buffer
Msg
buffer
Msg
:
any
cb
cb
:
any
closed
closed
:
boolean
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
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
enqueue
enqueue
(
socket
:
any
, acceptor
:
WSAcceptor
, msg
:
Msg
)
:
void
Parameters
socket:
any
acceptor:
WSAcceptor
msg:
Msg
Returns
void
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
string
|
symbol
>
flush
flush
(
acceptor
:
WSAcceptor
)
:
void
Parameters
acceptor:
WSAcceptor
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
:
string
|
number
)
:
void
Parameters
port:
string
|
number
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
:
WSAcceptor
, pkg
:
AcceptorPkg
)
:
void
Parameters
socket:
any
acceptor:
WSAcceptor
pkg:
AcceptorPkg
Returns
void
process
Msgs
process
Msgs
(
socket
:
any
, acceptor
:
WSAcceptor
, pkgs
:
Array
<
AcceptorPkg
>
)
:
void
Parameters
socket:
any
acceptor:
WSAcceptor
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
WSAcceptor
constructor
_interval
buffer
Msg
cb
closed
inited
interval
msg
Queues
rpc
Debug
Log
rpc
Logger
server
sockets
whitelist
default
Max
Listeners
add
Listener
clone
Error
close
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