Record messages from a ZMQ pub socket and play back messages.
pyproject.toml | ||
README.md | ||
record_playback.py | ||
record_sub.py | ||
uv.lock |
- 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
- Provide port and filename as arguments. For example:
- 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.