Skip to content
Back to skills

Forge Websockets Realtime

ASecurity

Build realtime features with WebSockets or SSE: auth, reconnection, backpressure, ordering and scaling

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsnode

Works with

  • cli

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add ansh44233/forge --skill forge-websockets-realtime --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Forge Websockets Realtime?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Forge Websockets Realtime
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ansh44233-forge-websockets-realtime/badge)](https://www.skillsdirectory.com/skills/ansh44233-forge-websockets-realtime)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: forge-websockets-realtime
description: "Build realtime features with WebSockets or SSE: auth, reconnection, backpressure, ordering and scaling"
---

<!-- Generated from catalog/skills/websockets-realtime/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->

# WebSockets and realtime

Use when adding live updates, chat, presence or collaborative features.

## Pick the transport
- Server-Sent Events for one-way server-to-client updates. Simpler, works over plain HTTP, and reconnects automatically.
- WebSockets for bidirectional, low-latency messaging.

## Auth
Authenticate during the handshake with a short-lived token or a session cookie plus an Origin check. Re-check authorization per channel or room, and when permissions change.

## Protocol
- Version your message format and include a type and id on every message.
- Clients reconnect with exponential backoff plus jitter, then resume from the last acknowledged event id. The server must support replay or a fresh snapshot.
- Heartbeats detect dead connections on both sides.

## Backpressure
Bound per-connection send buffers, drop or coalesce updates for slow clients (latest state wins), and rate-limit inbound messages.

## Scaling
Connections are sticky to a server. Fan out across instances with a pub/sub layer (Redis, NATS), keep no state only in memory that a reconnect to another node would need, and drain connections on deploy.

## Verify
Tests for auth rejection, reconnect and resume, duplicate and out-of-order messages, a slow consumer, and a load test at expected concurrency.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.