Skip to main content

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 inbox every 5 seconds, so it stays online while it runs.
  • A plain session only updates last_seen when it registers or reads its inbox. It can show online: false while it is open and fine.
  • online: false does not stop delivery. You can send to 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.