2
ModuleServerAPIClient
Mees van der Wijk edited this page 2025-08-09 16:33:38 +02:00

ModuleServerApi - Client

Class representing the ModuleServerApi Client.

Functions

send

Send a message to the client.

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

isAuthorized

Check if the client is authorized, meaning they are logged in and have access to the channel.

client.isAuthorized();

*Returns boolean Client is authorized

getSceneID

Get the scene id the client is in.

client.getSceneID();

*Returns string Scene ID

getDisplayID

Get the display id the client is in.

client.getDisplayID();

*Returns string Display ID

getClientID

Get the client id.

client.getClientID();

*Returns string Client ID