Platform Features
Real-time Communication - Overview
Socket.IO based real-time updates across products
Real-time Communication
Socket.IO based real-time updates across all Fleksa products.
Overview
The Real-time Communication system enables instant updates across all Fleksa applications using Socket.IO, ensuring data synchronization and live notifications.
Key Features
Live Updates
- Order status changes
- New order notifications
- Payment confirmations
- Kitchen display updates
Cross-App Sync
- Dashboard ↔ Kitchen display
- POS ↔ Customer apps
- Multiple device sync
- Branch synchronization
Push Notifications
- Order updates to customers
- Staff alerts
- System notifications
- Custom event triggers
Connection Management
- Automatic reconnection
- Offline queue
- Connection status tracking
- Room-based channels
Architecture
Socket.IO Server
- Runs alongside API server
- Handles WebSocket connections
- Manages room subscriptions
- Broadcasts events
Event Types
// Order events
'order:created'
'order:updated'
'order:status_changed'
// Kitchen events
'kitchen:item_ready'
'kitchen:bump'
// Notification events
'notification:new'
'notification:read'
// Sync events
'sync:menu_updated'
'sync:settings_changed'Room Structure
shop:{shop_id} - All shop events
shop:{shop_id}:orders - Order updates
shop:{shop_id}:kitchen - Kitchen events
user:{user_id} - User notifications