disconnectWebSocket
Terminate WebSocket connections to stop real-time data streams from the Bitget cryptocurrency exchange, managing network resources effectively.
Instructions
Disconnect from WebSocket
Input Schema
TableJSON 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: []