pipeline-de-notificacoes-em-tempo-real

Implements real-time push notifications via WebSockets and Server-Sent Events for collaboration.

Updated Jul 19, 2026
One-click install
npx skills add https://github.com/Ryanzucchi/Eldritch_Lich --skill pipeline-de-notificacoes-em-tempo-real-ryanzucchi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pipeline-de-notificacoes-em-tempo-real
Source: https://github.com/Ryanzucchi/Eldritch_Lich/tree/main/.agents/skills/pipeline-de-notificacoes-em-tempo-real
Command: npx skills add https://github.com/Ryanzucchi/Eldritch_Lich --skill pipeline-de-notificacoes-em-tempo-real-ryanzucchi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires socket.io, socket.io-client, socket.io-redis.

What problem does it solve? Delivering instant notifications for collaborative editing events—such as @mentions in comments, collaborator cursors, and completed async jobs—requires a scalable real-time architecture that works across multiple server instances, which is complex to design correctly. ## Core Features & Use Cases - WebSocket Rooms with Socket.io: Authenticate clients via JWT handshake and organize sockets into per-document and per-user rooms for targeted event delivery. - @Mention Notifications: Resolve @username references in comments, emit real-time notification events, and persist them in a notifications table for offline retrieval. - Redis Pub/Sub Fanout: Use the socket.io-redis adapter so notifications generated on one server reach users connected to other servers in a cluster. - SSE for Non-Urgent Events: Deliver lower-priority updates like export completion via Server-Sent Events with heartbeat keepalive. - Use Case: When Maria comments "@joao check this scene", the server resolves the mention, emits a notification to João's socket room, and João sees a badge on his notification bell in under 500ms. ## Quick Start Implement the real-time notification pipeline with Socket.io rooms, Redis adapter, and SSE endpoints following the step-by-step process in this skill.

Frequently Asked Questions about pipeline-de-notificacoes-em-tempo-real

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement real-time notifications with Socket.io?▼

Authenticate clients via JWT in the WebSocket handshake, then organize sockets into rooms such as doc:{id} for documents and user:{id} for individual users. Emit notification events directly to the target user's room and persist them in a notifications table for offline retrieval.

How to scale Socket.io across multiple server instances?▼

Configure the socket.io-redis adapter so events emitted on one server are retransmitted via Redis Pub/Sub to all servers in the cluster. This ensures a notification generated on server A reaches a user connected to server B without changing emission logic.

When should I use Server-Sent Events instead of WebSockets?▼

Use SSE for non-urgent, server-to-client notifications like export completion or NLP analysis results, delivered via a GET endpoint with text/event-stream. Reserve WebSockets for bidirectional, latency-sensitive events like collaborator cursors and @mentions.

Why are notifications not reaching users on other servers?▼

This happens when scaling WebSocket servers horizontally without a Redis adapter, since rooms are local to each instance. Enable the socket.io-redis adapter from the start so Pub/Sub handles cross-instance delivery.

How do I handle @mention notifications in comments?▼

Detect @username in the comment text, resolve it to a user_id in the database, then emit a notification event to the user:{user_id} room. Also persist the notification in the notifications table so it can be recovered after offline periods.