{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Live prices — WebSocket",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "ws",
      "type": "input.websocket",
      "label": "ws://…/ticker",
      "category": "trigger",
      "config": {
        "path": "/ticker",
        "heartbeatSeconds": 30
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "spread",
      "type": "processing.set",
      "label": "Quote spread",
      "category": "processing",
      "config": {
        "mode": "manual",
        "assignments": [
          {
            "name": "ask",
            "type": "number",
            "value": "{{ $json.bid + 0.25 }}"
          }
        ],
        "include": "all",
        "dotNotation": true,
        "ignoreConversionErrors": false
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Quote board",
      "category": "utility",
      "config": {
        "message": "{{ $json.symbol }}: bid {{ $json.bid }} / ask {{ $json.ask }}"
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "ws",
      "sourcePort": "output",
      "targetNodeId": "spread",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "spread",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "ws"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "Every message a connected WebSocket client sends becomes one run — here a price quote gets enriched and logged. Deployed, clients connect to ws://host/ticker."
  }
}