Settings for the Notification Process with WebSocket
This document describes the settings for the notification process.
Settings
-
On the Servers tab for the agent instance, select the WebSocket Server checkbox and make the settings. You specify the WebSocket destination system here too. (See also: WebSocket Server
-
Create a notification template by selecting the agent instance and choosing Add Notification in the context menu.
-
In the Add Notification dialog box that appears, select the option Notification Template for Remote Subscriptions. Choose the Next Step pushbutton.
-
Enter the notification name in the dialog box that appears. This name must not be Template. You can enter a description if necessary. Then choose OK.
The notification tabs are displayed. You do not have to enter anything on the Notification, Remote Subscription, or Message Delivery tabs.
-
Choose the Destinations tab.
-
In the Destination System Type field select the entry /Destination System for WebSocket and enter a name. Choose OK.
-
Save your entries.
PCo assigns the WebSocket destination system and creates the notification template.
Result
You can now start the agent instance. PCo then connects with the WebSocket client.
In the WebSocket client you can now send JSON messages, for example, to search for data or subscribe to tags. PCo sends the data to the connected user interface.