initial commit

This commit is contained in:
kc1awv
2025-12-29 16:08:24 -05:00
commit 262b8b36ce
19 changed files with 3488 additions and 0 deletions

11
tests/test_codec.py Normal file
View File

@@ -0,0 +1,11 @@
from rrcd.codec import decode, encode
from rrcd.constants import T_MSG
from rrcd.envelope import make_envelope, validate_envelope
def test_codec_round_trip() -> None:
env = make_envelope(T_MSG, src=b"peer", room="#general", body="hello")
data = encode(env)
decoded = decode(data)
assert decoded == env
validate_envelope(decoded)