Class WebsocketAgentProtocol

All Implemented Interfaces:
org.openremote.model.asset.agent.Protocol<WebsocketAgent>

This is a generic Protocol for communicating with a Websocket server using String based messages.

Protocol Specifics

When the websocket connection is established it is possible to subscribe to events by specifying the WebsocketAgent.CONNECT_SUBSCRIPTIONS on the WebsocketAgent or WebsocketAgentLink.getWebsocketSubscriptions() on linked Attributes; a subscription can be a message sent over the websocket or a HTTP REST API call.