API REFERENCE

WebSocket Feed

Consume real-time threats with zero latency.

Raw WebSocket (Advanced)

Connect directly to the feed endpoint if you need full control or are working in a non-JS environment. No API key is required.

client.jsjavascript
const ws = new WebSocket('wss://sentinel-guard-three.vercel.app/feed');

ws.onmessage = (event) => {
  const alert = JSON.parse(event.data);
  console.log(`New alert! Score: ${alert.severity}`);
};

Messages match the Alert Schema. Pings are sent every 30 seconds to keep the connection alive. You are responsible for reconnect logic when using the raw WebSocket.

Was this page helpful?