THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class IWebSocketTransport(ABC): (source)
Known subclasses: orionis.http.adapters.websocket.asgi.ASGIWebSocketTransport, orionis.http.adapters.websocket.rsgi.RSGIWebSocketTransport
Normalize server operations without owning application lifecycle state.
| Async Method | accept |
Complete the pending handshake. |
| Async Method | close |
Close the underlying connection. |
| Async Method | receive |
Receive one normalized server event. |
| Async Method | reject |
Reject an unaccepted handshake. |
| Async Method | send |
Await binary delivery and server backpressure. |
| Async Method | send |
Await text delivery and server backpressure. |
| Class Variable | __slots__ |
Undocumented |
| Property | supports |
Declare whether custom close details can reach the wire. |
async def accept(self, *, subprotocol:
str | None = None, headers: Mapping[ str, str] | None = None):
(source)
¶
overridden in
orionis.http.adapters.websocket.asgi.ASGIWebSocketTransport, orionis.http.adapters.websocket.rsgi.RSGIWebSocketTransportReceive one normalized server event.
| Returns | |
WebSocketMessage | Text, binary or disconnect event. |