Scale Intelligence■ Docs
Docs / The model / ClientConnection

ClientConnection.

One WebSocket the installed app keeps open to the platform: authenticated by the session's token in its first message, carrying progress, task events and file bytes

Figure 1ClientConnectionspecified
CLIENTCONNECTIONfact at tenant scopesessionidopened_attimelast_message_attimebytes_inbytesbytes_outbytesstateenum:open|idle|closedpoints at no other object
ClientConnection is a fact at tenant scope. The drawing shows its fields and the objects that they point at.
kind
fact
scope
tenant
key
the session and the connection id
store
postgres
family
network

Fields#

fieldtyperequirednote
sessionidyes
opened_attimeyes
last_message_attimeyes
bytes_inbytesyes
bytes_outbytesyes
stateone of open | idle | closedyes

Routes that use it#

No route takes or returns ClientConnection directly. The record holds it, and the objects that point at it reach it.