ws_generate_server
Generate a WebSocket server with connection handling, heartbeats, and message routing. Specify custom events, framework, and optional auth to handle real-time communication.
Instructions
Generate a WebSocket server with connection handling, heartbeats, and message routing
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | Custom event names to handle (e.g. 'chat:message', 'user:typing') | |
| api_key | No | API key for authentication | |
| framework | No | WebSocket library to use | socket.io |
| include_auth | No | Whether to include authentication middleware |