Skip to content

WebSocket reconnect lab for Python

Choose a tag to compare

@JacobiusMakes JacobiusMakes released this 01 Dec 20:35
ef85546

Replay twelve fictional client events, including a duplicate, a disconnect, an empty partial snapshot and a cancelled connection. The exercise runs with Python 3.9 or later and makes zero network requests.

Download and extract websocket-reconnect-examples.zip. Run python3 websocket-replay/replay.py inside the extracted folder. The README walks through the expected prices and row clocks. The optional live sample is a separate command for eligible account holders.

Read the example

Compare the same price timeline under polling and streaming. Change the polling interval and see which observations survive a disconnect.