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.
module documentation
Preserve transport incidents when exposing WebSocket disconnect controls.
| Async Function | disconnected |
Observe a transport error and associate its public disconnect wrapper. |
async def disconnected(error:
Exception, *, transport: str, phase: str, expected: bool = False) -> WebSocketDisconnected:
(source)
¶
Observe a transport error and associate its public disconnect wrapper.
| Parameters | |
error:Exception | Original transport failure. |
transport:str | Server protocol name. |
phase:str | Transport operation that failed. |
expected:bool, optional | Whether the server reports an ordinary closed connection. |
| Returns | |
WebSocketDisconnected | Existing public control exception, associated with the same incident. |