WebSocket endpoint
Overview
WebSocket publisher transport emits processed events to subscribed clients. Events are serialised as Json using the JsonStreamEventFormatter.
Example
This simple example leverages the default setting resulting in events published as StreamEvent Json object to connected clients.
Example 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.
Attributes schema
Available configuration parameters
Attribute | Description | Data Type | Required |
---|---|---|---|
topic | User defined topic this stream relates too | String |
Client library
Last updated