Skip to Content
API ReferenceWebSocket

WebSocket

Waypath provides a WebSocket connection for real-time intelligence update events. The dashboard uses this to update the Intelligence and Pipeline views live.

Connecting

const ws = new WebSocket('wss://api.waypath.app/ws') ws.onopen = () => { console.log('Connected to Waypath') } ws.onmessage = (event) => { const mutation = JSON.parse(event.data) console.log('Intelligence update:', mutation) }

For local development: ws://localhost:4747/ws

Mutation events

Each message contains an intelligence mutation event:

{ "type": "node_added", "data": { "id": "node_abc123", "label": "Customer", "properties": { "name": "Sarah Chen", "email": "sarah@example.com" } } }

Event types

TypeDescription
node_addedA new entity was created
node_updatedAn existing entity’s properties changed
node_removedAn entity was deleted
edge_addedA new relationship was created
edge_removedA relationship was deleted
graph_rebuiltIntelligence was fully reconstructed from Pipeline data

When events fire

WebSocket events broadcast on:

  • Event ingestion (new touchpoints, customers)
  • CRM mutations (Pipeline edits)
  • Integration syncs (new data from connected platforms)
  • Intelligence rebuilds (scheduled or triggered)

SYNC · OK© 2026 WAYPATHBUILD · D-03SOC2 · IN PROGRESSWAYPATH.APP