跳至內容
Fumadocs

Subscribe to System Events

接收
/system/events
伺服器

Subscribe to system-wide notifications and alerts

System-wide events including maintenance notifications, rate limit alerts, and security events.

These events are broadcast to all connected clients and don't require specific subscriptions.

授權

headerAuthorizationBearer <JWT>

JWT Bearer token authentication for WebSocket connections

程式碼範例
const socket = new WebSocket("wss://galaxy.scalar.com/system/events?api_key=YOUR_API_KEY");

socket.addEventListener("message", (event) => {
  console.log(event.data);
});

訊息