Custom WebSocket source
Connects to a WebSocket server you run and turns each message into an event.
| Setting | Default |
|---|---|
| Address | ws://127.0.0.1:8081/events |
Message format
{ "event": "name", "feature": "optional", "data": {} }
eventbecomes the event name andfeaturethe feature.datais passed to rules and templates unchanged.- Any other message, including non-JSON text, becomes an event named
message.
The same format is used by the Custom REST source.
Messages tagged "forwardedBy": "stream-pulse" are marked as forwarded and are
never forwarded again. See Forwarding events.