Class: FishjamWSNotifier
Defined in: js-server-sdk/src/ws_notifier.ts:12
Notifier object that can be used to get notified about various events related to the Fishjam App.
Extends​
TypedEventEmitter<NotificationEvents,this>
Constructors​
Constructor​
new FishjamWSNotifier(
config,onError,onClose):FishjamWSNotifier
Defined in: js-server-sdk/src/ws_notifier.ts:15
Parameters​
| Parameter | Type |
|---|---|
config | FishjamConfig |
onError | ErrorEventHandler |
onClose | CloseEventHandler |
Returns​
FishjamWSNotifier
Overrides​
(EventEmitter as new () => TypedEmitter<NotificationEvents>).constructor
Methods​
disconnect()​
disconnect():
void
Defined in: js-server-sdk/src/ws_notifier.ts:34
Close the underlying WebSocket and stop emitting notifications.
Returns​
void