Implement real-time presence tracking with PubNub
79
Quality
67%
Does it follow best practices?
Impact
98%
1.07xAverage score across 5 eval scenarios
{
"context": "A secured PubNub application uses Access Manager to control channel permissions. Presence tracking must work correctly with access control enabled, which requires granting permissions on specific channels that PubNub uses internally for presence.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Main channel grant",
"description": "Grants read and write permissions on the main chat channel (e.g., 'chat-room') for the user's auth token",
"max_score": 15
},
{
"name": "Presence channel grant",
"description": "Grants read permission on the companion '-pnpres' channel (e.g., 'chat-room-pnpres') separately, in addition to the main channel grant",
"max_score": 30
},
{
"name": "Selective presence channels",
"description": "When subscribing to multiple channels, presence is enabled only on the channels that need it (e.g., chat channels), not on all channels (e.g., notification channels)",
"max_score": 20
},
{
"name": "TTL on grants",
"description": "Token grants include a TTL (time-to-live) value to ensure permissions expire and must be refreshed",
"max_score": 15
},
{
"name": "Auth key or token used",
"description": "The grant references a specific authKey or authorized UUID for the user, not a blanket grant",
"max_score": 20
}
]
}