prefect.server.utilities.subscriptions

Functions

accept_prefect_socket

accept_prefect_socket(websocket: WebSocket) -> Optional[WebSocket]

still_connected

still_connected(websocket: WebSocket) -> bool
Checks that a client websocket still seems to be connected during a period where the server is expected to be sending messages.