Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MessagePortLike

A minimal MessagePort interface.

Hierarchy

  • MessagePortLike

Index

Properties

Methods

Properties

Optional close

close: function

Close this message port.

Type declaration

    • (): void
    • Returns void

Optional onmessage

onmessage: function

A callback for handling incoming messages.

Type declaration

Methods

postMessage

  • postMessage(message: any): void
  • Send a message through this message port.

    Parameters

    • message: any

      The message needed to be posted.

    Returns void

Generated using TypeDoc