import hoist
server = hoist.start("test")
@server.receive("hello")
async def hello(message: hoist.Message) -> None:
print("server got hello")
await message.reply("hi")
import hoist
@hoist.connect_with("test")
async def main(server: hoist.Connection):
@server.receive("hi")
async def hello():
print("client got hi")
await server.message("hello")
- Fully type safe
- Async ready
- Modern API
python3 -m pip install -U hoist-http
py -3 -m pip install -U hoist-http