# Data Feeds: WebSockets

> Hold a live connection open.

Glider documentation · Data · Web page: https://cgglider.com/docs/pollers/websocket/

Sections of this page: [Transports](https://cgglider.com/docs/pollers.md) · [JSON, XML & text](https://cgglider.com/docs/pollers/formats.md) · [Webhooks](https://cgglider.com/docs/pollers/webhook.md) · [WebSockets](https://cgglider.com/docs/pollers/websocket.md) · [HTTP requests](https://cgglider.com/docs/pollers/compose.md) · [Auth & secrets](https://cgglider.com/docs/pollers/auth.md) · [Mapping the response](https://cgglider.com/docs/pollers/mapping.md) · [Schedule & freshness](https://cgglider.com/docs/pollers/schedule.md) · [Probe & diagnostics](https://cgglider.com/docs/pollers/probe.md)

| Field | Meaning |
| --- | --- |
| URL | ws:// or wss://; secrets may be interpolated. |
| Headers | Sent with the connection handshake (auth tokens, API keys). |
| Subscribe | Text sent after every connect and reconnect — a subscribe or auth frame. |
| Reconnect | Wait before reconnecting after a drop; doubles on each failed attempt, up to 30 s. |
| Only when … = … | For a socket that multiplexes message types: only messages whose value at the path equals the text are mapped. |

Listen connects with the feed's own settings, sends the subscribe text and shows the first message that passes the filter. A message only needs to carry the fields it changes: the others hold.

![A WebSocket feed decoding XML, with a match filter and a subscribe frame.](https://cgglider.com/docs-shots/feed-websocket.png)
