Transport: {
    type?: string;
    filter(message: Omit<TransportMessage, "messageBuffer">): boolean;
    onmessage?(message: Uint8Array): void;
    send(message: Uint8Array): Promise<void>;
}

Type declaration

  • Optional type?: string
  • filter:function
    • Parameters

      Returns boolean

  • onmessage?:function
    • Parameters

      • message: Uint8Array

      Returns void

  • send:function
    • Parameters

      • message: Uint8Array

      Returns Promise<void>