#}
WebSocket Features
Build real-time applications with GEMVC's powerful WebSocket system powered by OpenSwoole
WebSocket Features
Overview
GEMVC provides a powerful WebSocket system built on OpenSwoole/Swoole, enabling real-time communication through the SwooleWebSocketHandler class.
Channel-Based Organized messaging with channels
Authentication Built-in JWT token support
Rate Limiting Protect against abuse
Redis Ready Scale across multiple servers
info: WebSocket features require OpenSwoole or Swoole extension. They are not available with Apache/PHP-FPM.
Key Features
- Real-time bidirectional communication - Send and receive messages instantly
- Channel subscriptions - Organize clients into logical groups
- Broadcasting - Send messages to all connected clients
- Connection management - Track and manage active connections
Tip: For production deployments, use Redis integration to enable WebSocket communication across multiple server instances.