« Back to Product

Documentation

WSC_SendMessage

Require: IP-Symcon >= 5.5

 boolean WSC_SendMessage (int $InstanceID, string $Message) 

Parameters

InstanceID

ID of the WebSocket client to be updated

Message

The string to be sent

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

Sends the message Message to the WebSocket Client with the ID InstanceID.

Example

// Sends the message "Hello World" to the WebSocket Client instance with ID 12345
WSC_SendMessage(12345, "Hello World");
Any questions?