---
title: "ConnectionState"
description: "the one WebSocket a session keeps to the platform, as the status bar shows it"
section: concepts
address: /concepts/connectionstate
contract: 0476e35e6e275db5
---

# ConnectionState

the one WebSocket a session keeps to the platform, as the status bar shows it

[figure: ConnectionState is a value at none scope. The drawing shows its fields and the objects that they point at.]

| property | value |
|---|---|
| kind | value |
| scope | none |
| key | none |
| store | none |
| family | interfaces |



## Fields


| field | type | required | note |
|---|---|---|---|
| `state` | `one of connecting \| open \| degraded \| closed` | yes |  |
| `opened_at` | `time` | no |  |
| `last_message_at` | `time` | no |  |
| `cursor` | [EventCursor](/concepts/eventcursor) | no |  |
| `retries` | `count` | yes |  |



## Routes that use it
No route takes or returns ConnectionState directly. The record holds it, and the objects that point at it reach it.
