ORIONIS API REFERENCE

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:ExceptionOriginal transport failure.
transport:strServer protocol name.
phase:strTransport operation that failed.
expected:bool, optionalWhether the server reports an ordinary closed connection.
Returns
WebSocketDisconnectedExisting public control exception, associated with the same incident.