Built-in WebSocket Support for Agent Activations, Model Changes, and Live UI Updates
No polling, no refreshing - instant updates for agent executions, data changes, and user interactions across all connected clients
Real-Time Architecture
Event-driven updates across your entire application stack
Event Triggers
WebSocket Hub
Live UI Updates
Comprehensive Event System
Built-in events for every aspect of your application
Agent Events
Model Events
User Events
System Events
Simple WebSocket Integration
Connect to real-time events with minimal code
Connect to WebSocket
Establish connection to your app's WebSocket endpoint
Subscribe to Events
Listen for specific event types or channels
Handle Updates
Update your UI instantly when events arrive
// Connect to your app's WebSocket
const ws = new WebSocket('wss://app.fiberwise.ai/ws/my-app');
// Listen for agent events
ws.addEventListener('message', (event) => {
const data = JSON.parse(event.data);
switch(data.event) {
case 'agent.started':
showProgress(data.agent_id);
break;
case 'agent.completed':
updateResults(data.result);
break;
case 'model.created':
addToList(data.record);
break;
}
});
// Subscribe to specific channels
ws.send(JSON.stringify({
action: 'subscribe',
channels: ['agents', 'users', 'chats']
}));
import websockets
import json
async def websocket_client():
uri = "wss://app.fiberwise.ai/ws/my-app"
async with websockets.connect(uri) as websocket:
# Subscribe to events
await websocket.send(json.dumps({
"action": "subscribe",
"channels": ["agents", "models"]
}))
# Listen for events
async for message in websocket:
data = json.loads(message)
if data["event"] == "agent.completed":
print(f"Agent {data['agent_id']} finished!")
process_result(data["result"])
elif data["event"] == "model.created":
print(f"New {data['model']} created: {data['id']}")
update_ui(data["record"])
Real-Time Use Cases
Perfect for applications that need instant updates
Live Chat Applications
Instant message delivery, typing indicators, and presence status for real-time communication
Live Dashboards
Real-time metrics, charts that update instantly, and live data visualization without page refreshes
Collaborative Tools
Multiple users working together with instant updates, conflict resolution, and activity tracking
AI Progress Tracking
Live updates during AI agent execution, progress bars, and instant result delivery
High-Performance WebSocket Infrastructure
Built for scale with enterprise-grade reliability
Horizontal Scaling
Automatic load balancing across multiple WebSocket servers
Connection Management
Automatic reconnection, heartbeat monitoring, and graceful degradation
Efficient Filtering
Server-side event filtering reduces bandwidth and improves performance
Ready to Add Real-Time Updates?
Learn how to integrate WebSocket events into your applications