Record messages from a ZMQ pub socket and play back messages.
Find a file
2025-07-01 16:00:24 +02:00
pyproject.toml ZMQ sub recording and a playback publisher 2025-04-07 09:52:42 +02:00
README.md Provide port and filename as arguments 2025-07-01 16:00:24 +02:00
record_playback.py Provide port and filename as arguments 2025-07-01 16:00:24 +02:00
record_sub.py Provide port and filename as arguments 2025-07-01 16:00:24 +02:00
uv.lock ZMQ sub recording and a playback publisher 2025-04-07 09:52:42 +02:00

  • Subscribe to a ZMQ pub socket with uv run record_sub.py
    • Provide port and filename as arguments. For example: uv run record_sub.py 99174 messages-20250701.jsonl
  • Playback the recorded messages by publishing them to the provided port with uv run record_playback.py
    • Messages should be played with the same timing offsets as they were recorded. Starting after the first message (which is send immediately, without delay).
    • Again, provide port and filename as arguments: uv run record_playback.py 99174 messages-20250701.jsonl

Usefull for testing the functionality of a pubsub subsciber script.