Class ElectronMessagingContribution

This component replicates the role filled by MessagingContribution but for Electron. Unlike the WebSocket based implementation, we do not expect to receive connection events. Instead, we'll create channels based on incoming open events on the ipcMain channel. This component allows communication between renderer process (frontend) and electron main process.

Implements

Constructors

Properties

channelHandlers: ConnectionHandlers<Channel> = ...
messagingContributions: ContributionProvider<core.Contribution>
openChannels: Map<number, ElectronWebContentChannel> = ...

Each electron window has a main channel and its own multiplexer to route multiple client messages the same IPC connection.

wsHandlers: ConnectionHandlers<unknown> = ...

Methods