Search
Preparing search index...
The search index is not available
pinus-admin
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
MqttServer
Class MqttServer
Hierarchy
EventEmitter
MqttServer
Index
Constructors
constructor
Properties
cb
closed
inited
opts
server
socket
default
Max
Listeners
Methods
add
Listener
close
emit
event
Names
get
Max
Listeners
listen
listener
Count
listeners
on
once
prepend
Listener
prepend
Once
Listener
remove
All
Listeners
remove
Listener
send
set
Max
Listeners
listener
Count
Constructors
constructor
new
Mqtt
Server
(
opts
?:
any
, cb
?:
Function
)
:
MqttServer
Parameters
Optional
opts:
any
Optional
cb:
Function
Returns
MqttServer
Properties
Private
Optional
cb
cb
:
Function
closed
closed
:
boolean
= true
inited
inited
:
boolean
= false
Private
Optional
opts
opts
:
any
server
server
:
Server
socket
socket
:
mqtt_connection
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
close
close
(
)
:
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
listen
listen
(
port
:
number
)
:
void
Parameters
port:
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
:
"connection"
, listener
:
function
)
:
this
on
(
event
:
"error"
, listener
:
function
)
:
this
on
(
event
:
"closed"
, listener
:
function
)
:
this
on
(
event
:
string
, listener
:
function
)
:
this
Parameters
event:
"connection"
listener:
function
(
socket
:
MqttSocket
)
:
void
Parameters
socket:
MqttSocket
Returns
void
Returns
this
Parameters
event:
"error"
listener:
function
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
this
Parameters
event:
"closed"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
string
listener:
function
(
msg
:
any
)
:
void
Parameters
msg:
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
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
send
(
topic
:
string
, msg
:
any
)
:
void
Parameters
topic:
string
msg:
any
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
Mqtt
Server
constructor
cb
closed
inited
opts
server
socket
default
Max
Listeners
add
Listener
close
emit
event
Names
get
Max
Listeners
listen
listener
Count
listeners
on
once
prepend
Listener
prepend
Once
Listener
remove
All
Listeners
remove
Listener
send
set
Max
Listeners
listener
Count