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
- filter(message: Omit<TransportMessage, "messageBuffer">): boolean
-
Returns boolean
-
onmessage?:function
- onmessage(message: Uint8Array): void
-
Returns void
-
send:function
- send(message: Uint8Array | Uint8Array[]): Promise<void>
-
Parameters
-
message: Uint8Array | Uint8Array[]
Returns Promise<void>
For Network messages its an Uint8Array[]. Due too the LiveKit MAX_SIZE = 13kb For Renderer & Other transports we send a single Uint8Array