Implement real-time presence tracking with PubNub
79
Quality
67%
Does it follow best practices?
Impact
98%
1.07xAverage score across 5 eval scenarios
Map-based user tracking
50%
100%
hereNow initialization
80%
100%
Join handling
80%
100%
Leave and timeout handling
100%
100%
State-change handling
50%
100%
Interval event handling
100%
100%
Occupancy tracking
100%
100%
Callback hooks exposed
100%
100%
withPresence subscription
100%
0%
beforeunload cleanup
80%
100%
Timeout at least 2x heartbeat
100%
100%
Event Engine enabled
0%
100%
Persistent unique userId
100%
100%
Connection status handling
66%
100%
Device count tracking
100%
100%
Count decrement on disconnect
100%
100%
Graceful leave distinction
100%
100%
No duplicate user entries
100%
100%
First join tracked
100%
100%
Main channel grant
100%
100%
Presence channel grant
100%
100%
Selective presence channels
100%
100%
TTL on grants
100%
100%
Auth key or token used
100%
100%
Map-based cache
100%
100%
TTL-based expiry
100%
100%
Returns cached on hit
100%
100%
Fetches on miss or expiry
100%
100%
Optimized hereNow flags
100%
100%
Multi-channel support
100%
100%
Install with Tessl CLI
npx tessl i guydemo/pubnub-presence