Connection
import { io } from 'socket.io-client';
const socket = io('https://api.aurion.ai', {
query: { userId: '<your-user-id>' },
transports: ['websocket', 'polling'],
});Join a guild room
socket.emit('join:guild', '<guildId>');Server → client events
- usage:update — billing and token quota changes
- notification — dashboard alerts and system messages
- workspace:sync — workspace lifecycle updates
- command:update — PRIME command status changes
- security:alert — Sentinel threat notifications
Dashboard SDK
The web dashboard uses connectAurionSocket() from lib/aurion-socket.ts with automatic reconnect and ref-counting. Set NEXT_PUBLIC_WS_URL if your API host differs from the default.