Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Constructors

Properties

onCloseEmitter: Emitter<ChannelCloseEvent> = ...
onErrorEmitter: Emitter<unknown> = ...
onMessageEmitter: Emitter<MessageProvider> = ...
socket: IWebSocket
toDispose: DisposableCollection = ...
wsPath: string = '/services'

Accessors

  • get onError(): Event<unknown>

Methods

  • close(): void