simple-message-channels/README.md
2020-08-01 18:53:22 +02:00

539 B

simple-message-channels

Build Status

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: