send

send: (channel: string, ...data: any[]) => void

Send a message over the socket.

@param channel - The name of the channel for the message. Must begin with the iTwinChannel prefix.

@param data - The optional data of the message.

@note data is serialized with the Structured Clone Algorithm, so only primitive types and ArrayBuffers are allowed.

Defined in

Last Updated: 13 June, 2024