Class WebSocketChannel

A channel that manages the main websocket connection between frontend and backend. All service channels are reusing this main channel. (multiplexing). An IWebSocket abstraction is used to keep the implementation independent of the actual websocket implementation and its execution context (backend vs. frontend).

Hierarchy (view full)

Constructors

Properties

onCloseEmitter: Emitter<ChannelCloseEvent> = ...
onDidConnect: Event<void> = ...
onDidConnectEmitter: Emitter<void> = ...
onErrorEmitter: Emitter<unknown> = ...
onMessageEmitter: Emitter<MessageProvider> = ...
socket: WebSocket
toDispose: DisposableCollection = ...
wsPath: string = '/services'

Accessors

Methods