Other References# class zonis.WebsocketProtocol[source]# Bases: Protocol The protocol underlying websockets should be exposed via. async send(content: str) → None[source]# Send a message down the wire. Parameters: content (str) – The content to send down the wire. async receive() → str | bytes | dict[source]# Listen for a message on the wire. Returns: The content received Return type: str|bytes|dict class zonis.FastAPIWebsockets[source]# Bases: object A websocket implementation wrapping FastAPI websockets async send(content: str) → None[source]# async receive() → str | bytes | dict[source]# class zonis.Websockets[source]# Bases: object A websocket implementation wrapping the websockets library async send(content: str) → None[source]# async receive() → str | bytes | dict[source]#