typescript-websocket

Community

Ship real-time features with TypeScript.

Authoranicdh
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Streamline real-time communication integration in TypeScript by providing a unified guide for WebSocket servers (NestJS Gateway/Socket.io), WebSocket clients (React), and SSE, including authentication, reconnection, and subscription patterns for production readiness.

Core Features & Use Cases

  • NestJS WebSocket Gateway: Socket.io integration with per-connection authentication and room-based messaging.
  • React WebSocket Client Hook: Robust connection lifecycle management, message handling, and optional subscriptions.
  • Server-Sent Events (SSE): Unidirectional server-to-client streams for notifications and progress updates.
  • Reliability Patterns: Heartbeat, exponential backoff reconnect, and subscription restoration across disconnects for a seamless experience.

Quick Start

Install the required dependencies, start a NestJS gateway and a React client, then open the app to observe real-time messaging.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: typescript-websocket
Download link: https://github.com/anicdh/agstack/archive/main.zip#typescript-websocket

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.