WebSocket vs SSE vs polling, reconnection with backoff and jitter, heartbeats, backpressure, message ordering, connection state UI, auth on upgrade, graceful degradation
94
98%
Does it follow best practices?
Impact
90%
1.87xAverage score across 5 eval scenarios
Passed
No known issues
A project management tool needs a real-time notification system. Users receive notifications when they are assigned to a task, when a task they are watching is updated, or when someone mentions them in a comment. Notifications should appear instantly without refreshing the page.
Build a Node.js/Express backend and React/TypeScript frontend:
Produce the following in a src/ directory:
Server:
src/server.ts -- Express server with real-time notification deliverysrc/notifications.ts -- Notification storage and delivery logicClient:
src/components/NotificationBell.tsx -- The notification icon with unread count badgesrc/components/NotificationList.tsx -- Dropdown list of notificationssrc/hooks/useNotifications.ts -- Hook that manages the real-time notification connectionUse in-memory storage. Do not include test files or build configuration.
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
skills
realtime-web-patterns
verifiers