ws_generate_client
Generate a WebSocket client for browser, Node, or React Native with auto-reconnect, event handling, and message queuing. Choose socket.io-client, ws, or native library and authenticate via API key.
Instructions
Generate a WebSocket client with auto-reconnect, event handling, and message queuing
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_client"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | Events the client should listen for | |
| api_key | No | API key for authentication | |
| platform | No | Target platform | browser |
| framework | No | Client library to use | socket.io-client |