539 B
539 B
simple-message-channels
Sans I/O wire protocol for Hypercore
Install
$ pip install simple-message-channels
Example
from simple_message_channels import SimpleMessageChannel
smc = SimpleMessageChannel()
send = smc.send(1, 2, b"foo")
recv = smc.recv(send_payload)
print(f"send: {send}", f"recv: {recv}, sep="\n")
Output: