Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebSocketConnectionProvider

Hierarchy

Index

Constructors

Properties

channelMultiplexer?: ChannelMultiplexer
onIncomingMessageActivityEmitter: Emitter<void> = ...
onSocketDidCloseEmitter: Emitter<void> = ...
onSocketDidOpenEmitter: Emitter<void> = ...
reconnectChannelOpeners: (() => Promise<void>)[] = []
socket: Socket<DefaultEventsMap, DefaultEventsMap>

Accessors

  • get onIncomingMessageActivity(): Event<void>
  • get onSocketDidClose(): Event<void>
  • get onSocketDidOpen(): Event<void>

Methods

  • createHttpWebSocketUrl(path: string): string
  • createSocketIoPath(url: string): undefined | string
  • createWebSocket(url: string): Socket<DefaultEventsMap, DefaultEventsMap>
  • createWebSocketUrl(path: string): string
  • fireSocketDidClose(): void
  • fireSocketDidOpen(): void
  • initializeMultiplexer(): void
  • toIWebSocket(socket: Socket<DefaultEventsMap, DefaultEventsMap>): IWebSocket
  • createProxy<T>(container: Container, path: string, arg?: object): JsonRpcProxy<T>