« Back to Product

Documentation

WC_PushMessage

Require: IP-Symcon >= 5.2

 boolean WC_PushMessage (int $InstanceID, string $HookPath, string $Message) 

Parameters

InstanceID

ID of the WebHook Control

HookPath

Path of the hook

Message

Message to send

Returns

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

Description

Sends message Message to all connected clients on hook HookPath of WebHook control with ID InstanceID.

Example

// Sends "Hello World" to the "test" hook of the WebHook Control with ID 12345
WC_PushMessage(12345, "/hook/test", "Hello World");
Any questions?