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": {} }
  • event becomes the event name and feature the feature.
  • data is 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.