This is a listener for web socket connections.

It wraps the Websocket.Server in a more convenient interface.

Constructors

Properties

Methods

Constructors

Properties

onConnection: OEvent<((connection: default) => void)> = ...

Event is emitted on incoming connections.

onStateChange: OEvent<((newState: WebSocketListenerState, oldState: WebSocketListenerState, reason?: string) => void)> = ...

Event is emitted when the state of the connector changes. The listener callback will be called in order to have access from outside to the errors that occur on the web socket level.

Methods