JSON Messages for WebSocket Connections
PCo supports the following six JSON messages:
Message | Description |
|---|---|
| This message lists all notification templates for the running agent instances for which you have created a WebSocket destination system.
End of the example. |
| This message lists all functions that are supported by the running agent instance.
End of the example. |
| With this message, you can subscribe to the current WebSocket to receive notifications by using the given template.
End of the example. |
| With the Unsubscribe message you can remove subscriptions. You can specify that the WebSocket is no longer subscribed to specific tags or to entire notifications. If you want the WebSocket client to remove the subscription for the entire notification, the parameters ought not to be set. To reduce the load on the source system, the Web clients need to send this command before the WebSocket closes (when you leave the website). Otherwise, the subscription for the notification is maintained.
End of the example. |
| With the Reconnect message, you can reconnect the WebSocket with an existing notification using the given handle.
End of the example. |
| With this message, you can write tag values using the given time stamp.
End of the example. |