Search
Preparing search index...
The search index is not available
pinus-admin
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
AdminClient
Class AdminClient
Hierarchy
AdminClient
Index
Constructors
constructor
Properties
_listeners
callbacks
id
md5
password
req
Id
socket
state
username
ST_
CLOSED
ST_
CONNECTED
ST_
INITED
ST_
REGISTERED
Methods
command
connect
do
Send
emit
notify
on
request
Constructors
constructor
new
Admin
Client
(
opt
:
AdminClientOption
)
:
AdminClient
Parameters
opt:
AdminClientOption
Returns
AdminClient
Properties
_listeners
_listeners
:
object
Type declaration
[
evt:
string
]:
Listener
[]
callbacks
callbacks
:
object
Type declaration
[
respId:
string
]:
Callback
id
id
:
string
= ""
md5
md5
:
boolean
= false
password
password
:
string
= ""
req
Id
req
Id
:
number
= 1
socket
socket
:
MqttClient
state
state
:
number
= AdminClient.ST_INITED
username
username
:
string
= ""
Static
ST_
CLOSED
ST_
CLOSED
:
number
= 4
Static
ST_
CONNECTED
ST_
CONNECTED
:
number
= 2
Static
ST_
INITED
ST_
INITED
:
number
= 1
Static
ST_
REGISTERED
ST_
REGISTERED
:
number
= 3
Methods
command
command
(
command
:
string
, moduleId
:
string
, msg
:
RequestMsg
, cb
:
Callback
)
:
void
Parameters
command:
string
moduleId:
string
msg:
RequestMsg
cb:
Callback
Returns
void
connect
connect
(
id
:
string
, host
:
string
, port
:
number
, cb
:
function
)
:
void
Parameters
id:
string
host:
string
port:
number
cb:
function
(
msg
?:
any
)
:
void
Parameters
Optional
msg:
any
Returns
void
Returns
void
do
Send
do
Send
(
topic
:
string
, msg
:
any
)
:
void
Parameters
topic:
string
msg:
any
Returns
void
emit
emit
(
event
:
string
,
...
args
:
any
[]
)
:
void
Parameters
event:
string
Rest
...
args:
any
[]
Returns
void
notify
notify
(
moduleId
:
string
, msg
:
RequestMsg
)
:
void
Parameters
moduleId:
string
msg:
RequestMsg
Returns
void
on
on
(
event
:
string
, listener
:
Listener
)
:
void
Parameters
event:
string
listener:
Listener
Returns
void
request
request
(
moduleId
:
string
, msg
?:
RequestMsg
, cb
?:
Callback
)
:
void
Parameters
moduleId:
string
Optional
msg:
RequestMsg
Optional
cb:
Callback
Returns
void
Globals
Admin
Client
constructor
_listeners
callbacks
id
md5
password
req
Id
socket
state
username
ST_
CLOSED
ST_
CONNECTED
ST_
INITED
ST_
REGISTERED
command
connect
do
Send
emit
notify
on
request