disconnectWebSocket
Terminate WebSocket connections to stop real-time data streams from the Bitget cryptocurrency exchange, managing network resources effectively.
Instructions
Disconnect from WebSocket
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "disconnectWebSocket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:493-503 (handler)The handler case for the 'disconnectWebSocket' tool. It calls this.wsClient.disconnect() to disconnect the WebSocket and returns a success message.
case 'disconnectWebSocket': { this.wsClient.disconnect(); return { content: [ { type: 'text', text: 'WebSocket disconnected', }, ], } as CallToolResult; } - src/server.ts:248-256 (registration)Registration of the 'disconnectWebSocket' tool in the list of available tools returned by listTools. Defines the tool name, description, and empty input schema.
{ name: 'disconnectWebSocket', description: 'Disconnect from WebSocket', inputSchema: { type: 'object', properties: {}, required: [] }, }, - src/server.ts:251-254 (schema)Input schema for the 'disconnectWebSocket' tool, which requires no parameters.
inputSchema: { type: 'object', properties: {}, required: []