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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"events": "<events>"
},
"name": "ws_generate_server"
}
}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 |