lms-cli-notifications / NotificationListener
-
EventEmitter
↳
NotificationListener
• new NotificationListener(params
)
Name | Type |
---|---|
params |
NotificationListenerParams |
EventEmitter.constructor
src/NotificationListener.ts:46
▸ getSubscribed(): string
[]
string
[]
src/NotificationListener.ts:302
▸ isConnected(): boolean
boolean
src/NotificationListener.ts:133
▸ start(): Promise
<boolean
>
Promise
<boolean
>
src/NotificationListener.ts:88
▸ stop(): Promise
<boolean
>
Promise
<boolean
>
src/NotificationListener.ts:126
▸ subscribe(notification
): Promise
<undefined
| true
>
Name | Type |
---|---|
notification |
string | string [] |
Promise
<undefined
| true
>
src/NotificationListener.ts:258
▸ unsubscribe(notification
): Promise
<undefined
| true
>
Name | Type |
---|---|
notification |
string | string [] |
Promise
<undefined
| true
>
src/NotificationListener.ts:280
▸ on(event
, listener
): NotificationListener
Server connected.
Name | Type |
---|---|
event |
"connect" |
listener |
(server : { host : string ; port : string }) => void |
EventEmitter.on
src/NotificationListener.ts:312
▸ on(event
, listener
): NotificationListener
Server disconnected.
Name | Type |
---|---|
event |
"disconnect" |
listener |
(server : { host : string ; port : string }) => void |
EventEmitter.on
src/NotificationListener.ts:319
▸ on(event
, listener
): NotificationListener
Subscribed notification received.
Name | Type |
---|---|
event |
"notification" |
listener |
(data : Notification ) => void |
EventEmitter.on
src/NotificationListener.ts:326