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

Type declaration

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

      Returns boolean

  • onmessage?:function
    • Parameters

      • message: Uint8Array

      Returns void

  • send:function
    • For Network messages its an Uint8Array[]. Due too the LiveKit MAX_SIZE = 13kb For Renderer & Other transports we send a single Uint8Array

      Parameters

      • message: Uint8Array | Uint8Array[]

      Returns Promise<void>