Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConnectionMainImpl

Implementation of connection system of the plugin API. Creates holds the connections to the plugins. Allows to send a message to the plugin by getting already created connection via id.

Hierarchy

  • ConnectionMainImpl

Implements

Index

Constructors

constructor

Properties

Private Readonly connections

connections: Map<string, PluginConnection> = ...

Private Readonly proxy

Private Readonly toDispose

toDispose: DisposableCollection = ...

Methods

$createConnection

  • $createConnection(id: string): Promise<void>

$deleteConnection

  • $deleteConnection(id: string): Promise<void>

$sendMessage

  • $sendMessage(id: string, message: string): Promise<void>

dispose

  • dispose(): void

Protected doCreateConnection

doEnsureConnection

ensureConnection