Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractConnectionProvider<AbstractOptions>

Factor common logic according to ElectronIpcConnectionProvider and WebSocketConnectionProvider. This class handles channels in a somewhat generic way.

Type parameters

  • AbstractOptions: object

Hierarchy

Index

Properties

Protected channelIdSeq

channelIdSeq: number = 0

Protected Readonly channels

channels: Map<number, WebSocketChannel> = new Map<number, WebSocketChannel>()

onIncomingMessageActivity

onIncomingMessageActivity: Event<void> = this.onIncomingMessageActivityEmitter.event

Protected Readonly onIncomingMessageActivityEmitter

onIncomingMessageActivityEmitter: Emitter<void> = new Emitter()

Methods

Protected Abstract createChannel

Protected createLogger

  • createLogger(): Logger

createProxy

Protected handleIncomingRawMessage

  • handleIncomingRawMessage(data: string): void

listen

openChannel

Static createProxy