<< Click to Display Table of Contents >> Navigation: Task Triggers > WebSocket Server On Message |
This trigger responds to the messages sent by different clients. This can be a WebSocket Client send message or any other applications or scripts that support WebSocket connections.
Note: This feature is available for Business license only |
WebSocket server.
Choose the required Websocket server from the list. Please note that you cannot choose the server when editing a network task. Instead, you must enter the server ID. You must know the server ID in advance (see WS Connection manager->Servers->Advanced). If an invalid ID is specified, an "Invalid WS Server ID" error is returned when executing.
WS Server Manager
You can view or edit lists of registered WebSocket servers and clients (see WS Connection Manager).
Message…
Several options for analyzing the message received are supported
•Is any string – in this case, the trigger launches the task when any string is received;
•Starts with – the message must start with the string specified in the String field;
•Contains – the message must contain the string specified in the String field
•Is exact string – the message must exactly match the specified string.
String
Enter the string to compare it with the message
Case Sensitive
If you need the case-sensitive comparison, then tick this checkbox.
Save received message to variable
Specify the name of the local variable of the task, where you want to save the received message. If the variable name is empty, the trigger doesn't save anything.
Related Topics
On Local/Remote Session Changes
WebSocket Server On HTTP Request