simple-message-channels/simple_message_channels/smc.py

13 lines
303 B
Python

"""Sans I/O wire protocol for Hypercore"""
__all__ = ["SimpleMessageChannel"]
class SimpleMessageChannel:
"""A simple message channel."""
async def send(self, channel: int, type: int, message: bytes) -> bytes:
pass
# TODO(decentral1se): spec out the context manager API of recv