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