> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# subscriptions

# `prefect.server.utilities.subscriptions`

## Functions

### `accept_prefect_socket` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/utilities/subscriptions.py#L20](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/utilities/subscriptions.py#L20)</sup>

```python theme={null}
accept_prefect_socket(websocket: WebSocket) -> Optional[WebSocket]
```

### `still_connected` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/utilities/subscriptions.py#L125](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/utilities/subscriptions.py#L125)</sup>

```python theme={null}
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.
