SIM Status
A SIM is either online or offline. Neither state is pushed to Connecfy by an event — both are inferred from whether the phone has checked in recently.
Online
Set the instant a heartbeat arrives, which happens roughly every 15 seconds while the app is running normally. "Online" means "heard from recently," not "definitely able to send right now" — a phone with no signal but a live network connection for its heartbeat still shows online.
Offline
Nothing flips a SIM to offline the moment it actually disconnects — a killed process or dead battery just stops sending heartbeats. Connecfy corrects this lazily: any time a device's status is about to be shown (a dashboard load, a stats query), it first checks whether the last heartbeat is older than 45 seconds and flips it to offline if so. In practice this means the dashboard is accurate within under a minute of a real disconnect, not instantly.
Last seen
The device page shows the timestamp of the last heartbeat received — useful for telling a SIM that's been offline for five minutes apart from one that's been offline for five days.
Usage per SIM
The Statistics page breaks down sent, failed, and success rate per SIM, so a single underperforming phone (bad signal, low battery cutting the app in the background) is visible rather than averaged away into the account total.
Offline doesn't cancel queued workMessages already queued for an offline SIM simply wait — they aren't reassigned or failed just because the SIM missed a few heartbeats. If it comes back within its retry window they send normally; see Message Lifecycle for what happens if it doesn't.