Skip to content

Teach WebSocket reconnect handling with a keyless local replay - #24

Merged
JacobiusMakes merged 1 commit into
mainfrom
examples/websocket-recovery-20261201
Dec 1, 2026
Merged

JacobiusMakes merged 1 commit into
mainfrom
examples/websocket-recovery-20261201

Conversation

@JacobiusMakes

Copy link
Copy Markdown
Owner

The public live sample previously printed the SDK's credential-bearing WebSocket URL. The updated sample authenticates in the request header, limits the number of frames and distinguishes initial state, updates and heartbeats. The SDK helper keeps its existing return value and now documents its private query string.

The new offline exercise follows a fictional two-sided moneyline through a partial initial state, a duplicate, a disconnect, a late callback, a reconnect and cancellation. It uses Python's standard library. The installed starter workflow also runs a real loopback handshake with a dummy key.

Eleven tests passed on Python 3.9 with websockets 11.0 and Python 3.14 with websockets 16.0. No production connection or account was used.

@JacobiusMakes
JacobiusMakes merged commit ef85546 into main Dec 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant