aj-geddes avatar

Real Time Features

This gives you working patterns for WebSocket, SSE, and long polling implementations when you need live updates between client and server. It covers the usual suspects: chat apps, collaborative editing, live dashboards, real time notifications. The reference guides include a Node.js WebSocket server, React client setup, SSE streaming, and a production Socket.IO configuration. The best practices section is solid on the basics like reconnection logic, heartbeats, and connection limits. If you're building anything that needs instant bidirectional communication instead of polling every few seconds, this gets you started with the right patterns and helps you avoid the common mistakes around connection management and scaling.

skills.sh installs
548
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill real-time-features --agent claude-code

Installs into .claude/skills of the current project.

Files

Real-Time Features

Table of Contents

Overview

Implement real-time bidirectional communication between clients and servers for instant data synchronization and live updates.

When to Use

  • Chat and messaging applications
  • Live dashboards and analytics
  • Collaborative editing (Google Docs-style)
  • Real-time notifications
  • Live sports scores or stock tickers
  • Multiplayer games
  • Live auctions or bidding systems
  • IoT device monitoring
  • Real-time location tracking

Quick Start

Minimal working example:

// server.ts
import WebSocket, { WebSocketServer } from "ws";
import { createServer } from "http";

interface Message {
  type: "join" | "message" | "leave" | "typing";
  userId: string;
  username: string;
  content?: string;
  timestamp: number;
}

interface Client {
  ws: WebSocket;
  userId: string;
  username: string;
  roomId: string;
}

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, AI & Agent Building
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1inertia-rails avatarinertia-rails-architectureinertia-rails/skillsServer-driven architecture patterns for Inertia Rails + React. Load this FIRST when building any Inertia page or feature — it routes to the right skill. Decisio545skills.sh installs
2odysseus0 avatarlinearodysseus0/symphonyLinear GraphQL patterns for Symphony agents. Use `linear_graphql` for all operations — comments, state transitions, PR attachments, file uploads, and issue crea542skills.sh installs
3davila7 avatarpolarsdavila7/claude-code-templatesFast DataFrame library (Apache Arrow). Select, filter, group_by, joins, lazy evaluation, CSV/Parquet I/O, expression API, for high-performance data analysis wor539skills.sh installs
4useai-pro avatarcredential-scanneruseai-pro/openclaw-skills-securityScan your project for exposed credentials, API keys, and secrets before running OpenClaw skills. Prevents accidental exfiltration.539skills.sh installs
5hkuds avatarcli-anything-videocaptionerhkuds/cli-anythingAI-powered video captioning — transcribe speech, optimize/translate subtitles, and burn them into video via the stable VideoCaptioner backend. Free ASR and tran537skills.sh installs
6intellectronica avatarcopilot-sdkintellectronica/agent-skillsThis skill helps with GitHub Copilot SDK work across Node.js/TypeScript, Python, Go, .NET, and Java. It covers setup, authentication, permissions, streaming eve535skills.sh installs