Options
All
  • Public
  • Public/Protected
  • All
Menu

A channel communicating with a counterpart in a plugin host.

Hierarchy

  • PluginChannel

Implements

  • DebugChannel

Index

Constructors

Properties

closedEmitter: Emitter<void> = ...
errorEmitter: Emitter<unknown> = ...
id: string
messageEmitter: Emitter<string> = ...

Methods

  • close(): void
  • fireClosed(): void
  • fireError(error: unknown): void
  • fireMessageReceived(msg: string): void
  • onClose(cb: ((code: number, reason: string) => void)): void
  • Parameters

    • cb: ((code: number, reason: string) => void)
        • (code: number, reason: string): void
        • Parameters

          • code: number
          • reason: string

          Returns void

    Returns void

  • onError(cb: ((reason: any) => void)): void
  • onMessage(cb: ((message: string) => void)): void
  • send(content: string): void