discover-realtime

Automatically load realtime communication skills for WebSockets, SSE, and pub/sub tasks.

126|7|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/rand/cc-experiments --skill discover-realtime
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: discover-realtime
Source: https://github.com/rand/cc-experiments/tree/main/skills/discover-realtime
Command: npx skills add https://github.com/rand/cc-experiments --skill discover-realtime

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implementing real-time communication features like live updates, chat, or push notifications can be complex. This skill provides instant access to expertise on WebSockets, Server-Sent Events (SSE), pub/sub patterns, and real-time synchronization, simplifying your development.

Core Features & Use Cases

  • Real-time Communication Mastery: Covers WebSocket implementation, Server-Sent Events (SSE), pub/sub patterns, and real-time synchronization strategies.
  • Intelligent Activation: Automatically loads when you're engaged in real-time development tasks, providing context-aware guidance.
  • Use Case: When building a live dashboard, this skill can guide you through choosing between WebSockets and SSE, and implementing a pub/sub pattern for efficient data distribution.

Quick Start

Explain the differences between WebSockets and Server-Sent Events for real-time data streaming.

Frequently Asked Questions about discover-realtime

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

FAQPage Schema
What's the difference between WebSockets and Server-Sent Events for real-time data?

WebSockets enable bidirectional communication over a single connection, ideal for chat and live collaboration. Server-Sent Events (SSE) provide one-way server-to-client streaming, better for live dashboards and notifications. Choose WebSockets when clients need to send frequent updates; use SSE for simpler push-only scenarios.

How do I implement real-time communication with pub/sub patterns?

Pub/sub patterns decouple publishers from subscribers through a message broker, enabling efficient data distribution. Implement by defining topics, having clients subscribe to relevant channels, and publishing updates that automatically reach all subscribers. This scales better than direct connections when multiple clients need the same live updates.

When should I use push notifications versus WebSockets for live updates?

Push notifications work well for alerting users outside your app and don't require persistent connections. WebSockets maintain open connections for continuous real-time streaming within your application. Use notifications for time-insensitive events; use WebSockets for interactive, low-latency features like live dashboards or chat.

Can I combine multiple real-time protocols in the same application?

Yes. Many applications use WebSockets for interactive features, SSE for one-way broadcasts, and push notifications for background alerts. The choice depends on client capabilities, latency requirements, and whether communication is bidirectional. Combining approaches lets you optimize for each use case.

What are common limitations when building real-time systems?

Real-time systems face challenges with connection persistence, network reliability, and scaling across multiple servers. Pub/sub brokers can become bottlenecks at scale. Browser support for WebSockets is universal, but SSE has limitations in older clients. Plan for graceful degradation and fallback mechanisms.