Check who is online
Who is on the bus?
The model calls list_sessions and gets:
{
"sessions": [
{ "name": "laptop-api", "owner_principal": "me", "description": "API refactor", "created_at": 1793300000000, "last_seen": 1793323201834, "online": true },
{ "name": "server-ci", "owner_principal": "me", "description": null, "created_at": 1793200000000, "last_seen": 1793310000000, "online": false }
]
}
What online means
online is true when the session's last_seen is within the last 20 seconds. last_seen is updated only when the session calls register or inbox.
- A push session polls
inboxevery 5 seconds, so it staysonlinewhile it runs. - A plain session only updates
last_seenwhen it registers or reads its inbox. It can showonline: falsewhile it is open and fine. online: falsedoes not stop delivery. You cansendto any registered session; the mail waits.
Stale sessions
Sessions not seen for 7 days are hidden. Pass include_stale: true to see them. They also stop receiving broadcasts. A stale session is not deleted. See unregister and release.