Search
Preparing search index...
The search index is not available
@lilusoft/janus-admin v0.0.3
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
MQTTEventClient
Class MQTTEventClient
Hierarchy
MQTTEventClient
Implements
IEventClient
Index
Constructors
constructor
Methods
dispose
on
Error
publish
subscribe
wait
For
Ready
Constructors
constructor
new MQTTEvent
Client
(
brokerUrl
:
string
, opts
?:
IClientOptions
)
:
MQTTEventClient
Parameters
brokerUrl:
string
Optional
opts:
IClientOptions
Returns
MQTTEventClient
Methods
dispose
dispose
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
on
Error
on
Error
(
errorHandler
:
(
err
:
Error
)
=>
void
)
:
Promise
<
void
>
Parameters
errorHandler:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
Promise
<
void
>
publish
publish<T>
(
topic
:
string
, message
:
T
)
:
Promise
<
void
>
Type parameters
T
Parameters
topic:
string
message:
T
Returns
Promise
<
void
>
subscribe
subscribe<T>
(
topic
:
string
, callback
:
(
message
:
T
)
=>
void
)
:
Promise
<
void
>
Type parameters
T
Parameters
topic:
string
callback:
(
message
:
T
)
=>
void
(
message
:
T
)
:
void
Parameters
message:
T
Returns
void
Returns
Promise
<
void
>
wait
For
Ready
wait
For
Ready
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
Globals
MQTTEvent
Client
constructor
dispose
on
Error
publish
subscribe
wait
For
Ready
Generated using
TypeDoc