Skip to main content
Version: 0.29.0

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​

Constructors​

Constructor​

new FishjamWSNotifier(config, onError, onClose): FishjamWSNotifier

Defined in: js-server-sdk/src/ws_notifier.ts:15

Parameters​

ParameterType
configFishjamConfig
onErrorErrorEventHandler
onCloseCloseEventHandler

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