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
- filter(message: Omit<TransportMessage, "messageBuffer">): boolean
-
Returns boolean
-
onmessage?:function
- onmessage(message: Uint8Array): void
-
Returns void
-
send:function
- send(message: Uint8Array): Promise<void>
-
Returns Promise<void>