Skip to content
aj-geddes avatar

Real Time Features

Real-time WebSocket, SSE, and long-polling implementation guidance for chat, dashboards, and live notifications.

CCM score
39 of 100
skills.sh installs
549
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers bidirectional real-time sync across WebSockets, Server-Sent Events, and long polling for instant updates
  • Includes reference guides for a Node.js WebSocket server, a React WebSocket client, SSE, and production Socket.IO
  • Provides a chat server quick start with join, message, leave, and typing message types, plus rooms
  • Designed for chat apps, live dashboards, collaborative editing, and notifications that need instant updates

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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;
}

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, Frontend & UI Code
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258

Similar to Real Time Features

More Backend & APIs