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