1
ModuleServerAPILibsWebSocketLibClient
Mees van der Wijk edited this page 2023-04-05 12:21:02 +02:00

ModuleServerAPI LibWebSocketClient

Class representing the ModuleServerAPI LibWebSocketClient.

Functions

send

Broadcasts a message to the LibWebSocketClients.

client.send(header, ...args);
Argument Type Description
header string The header of the message.
args any[] Data of any type.

rawSend

Broadcasts a raw message to the LibWebSocketClients.

client.rawBroadcast(data);
Argument Type Description
data string Buffer DataView number ArrayBufferView Uint8Array ArrayBuffer SharedArrayBuffer ReadonlyArray ReadonlyArray { valueOf(): ArrayBuffer } { valueOf(): SharedArrayBuffer } { valueOf(): Uint8Array } { valueOf(): ReadonlyArray } { valueOf(): string } { [Symbol.toPrimitive](hint: string): string }; The data of the message.