disconnect

View as MarkdownOpen in Claude
1disconnect(): Promise<void>

Disconnects the WebSocket and tears down the current session.

The client can be reconnected by calling connect again, which creates a fresh transport and session.

Examples

1await client.disconnect();