Class BrowserRuntimeConnection

BrowserRuntimeConnection Handle browser runtime communication

Hierarchy

Constructors

Properties

debug: boolean
port: Port

Methods

  • Connect

    Parameters

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

      Message handler

        • (message: any, origin: string, source: Port): void
        • Parameters

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

          Returns void

    • onDisconnect: (() => void)

      trigger when runtime connection in closed

        • (): void
        • Returns void

    Returns void

Generated using TypeDoc