Subscriptions
Live data, backfill and resume.
- class mirexa.Subscription(client: Client, state: SubState)
An iterator of
Event. Close it, or use it as a context manager.- property addr: str
The node this subscription is on.
- property redirects: int
Redirects followed: times the stream was found on, or moved to, another node.
- next(timeout: float | None = None) Event | None
The next event, or
Noneif none arrives withintimeoutseconds.
- close() None
Unsubscribe and close this subscription’s connection.
- class mirexa.AsyncSubscription(client: AsyncClient, state: SubState)
An async iterator of
Event. Close it, or useasync with.- property addr: str
The node this subscription is on.
- property redirects: int
Redirects followed: times the stream was found on, or moved to, another node.
- async next(timeout: float | None = None) Event | None
The next event, or
Noneif none arrives withintimeoutseconds.
- async close() None
Unsubscribe and close this subscription’s connection.