Websocket
Websocket publisher transport emits processed events to subscribed clients. Events are serialised as Json using the JsonStreamEventFormatter.
Driver details
Example configuration
This simple example leverages the default setting resulting in events published as StreamEvent Json object to connected clients.
Example Websocket client
Use the below example to validate websocket data streaming. If you are using Chrome open up the Developer tools console tab and click the Start Streaming
button on the page to stream events from the Joule process.
Core Attributes
Available configuration parameters
Attribute | Description | Data Type | Required |
---|---|---|---|
topic | User defined topic this stream relates too | String |
Last updated