{"version":"1.0.77","anchor":"websocket-transport-for-sdk-communication","canonical_anchor":"websocket-transport-for-sdk-communication","heading":"WebSocket Transport for SDK Communication","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/1.0.77\/e\/websocket-transport-for-sdk-communication","release_url":"https:\/\/changelogs.core-directive.com\/v\/1.0.77","markdown":"### WebSocket Transport for SDK Communication\n\n**What:** Added support for persistent WebSocket connections as an alternative to stdin\/stdout communication **How to use:**\n\n`# Connect to Claude's SDK server with WebSocket export CLAUDE_CODE_SESSION_ACCESS_TOKEN=\"your-token-here\" claude --sdk-url=wss:\/\/api.claude.ai\/sdk\/v1\/connect \\ --input-format=stream-json \\ --output-format=stream-json` **Details:**\n\n- Automatic reconnection with exponential backoff (up to 5 attempts)\n- Message buffering during disconnections (1000 message capacity)\n- Request replay on reconnection to prevent message loss\n- Support for both `ws:\/\/` and `wss:\/\/` protocols with Bearer token authentication\n- Enables real-time bidirectional communication for streaming responses"}