Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PluginWebSocketChannel

IWebSocket implementation over RPC.

Hierarchy

  • PluginWebSocketChannel

Implements

  • IWebSocket

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected Readonly connection

connection: PluginConnection

Methods

dispose

  • dispose(): void

onClose

  • 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

  • onError(cb: (reason: any) => void): void

onMessage

  • onMessage(cb: (data: any) => void): void

send

  • send(content: string): void