Class BrowserRuntimeConnection

BrowserRuntimeConnection Handle browser runtime communication

Hierarchy (view full)

Constructors

Properties

debug: boolean
port: Port

Methods

  • Connect

    Parameters

    • onMessage: ((message: any, origin: string, source: Port) => void)

      Message handler

        • (message, origin, source): void
        • Parameters

          • message: any
          • origin: string
          • source: Port

          Returns void

    • onDisconnect: (() => void)

      trigger when runtime connection in closed

        • (): void
        • Returns void

    Returns void