Claude Code v2.1.51 ·
WebSocket Transport Enhancements
EntryKind: in v2.1.51,
ChangesSection of the release
- New
autoReconnect option to disable automatic reconnection (useful for bridge sessions that manage their own lifecycle) onConnect callback fires when connection is establishedgetStateLabel() exposes current connection state- Close callbacks now receive the WebSocket close code for better error handling
Evidence
autoReconnect parameter in constructor, new setOnConnect and getStateLabel methods (search for "autoReconnect")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.51 →