SKILL

websockets

Build real-time features with WebSockets: connection lifecycle, protocols, backpressure, scaling, and reconnection. Use for live updates and chat.

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • WebSockets
  • Quick Start
  • When to Use
  • Best Practices
  • Protocol Design
  • Connection Lifecycle
  • Backpressure & Flow
  • Scaling

Building real-time, bidirectional communication with WebSockets. Live updates (chat, notifications, dashboards) Collaborative editing and presence Streaming data and progress Bidirectional client-server interactions Define message envelopes with a type + payload Version the message protocol Use JSON or a binary format consistently Include correlation/request IDs Handle open, message, close, and error events Implement ping/pong keepalive Detect half-open connections Clean up resources on close Respect slow consumers; don't buffer unbounded Use queues with limits and drop policies Batch high-frequency updates Pause/close on saturation Share state via pub/sub (Redis) across nodes Use sticky sessions or a gateway Reconnect with exponential backoff client-side Handle authentication at handshake 1. Define the message envelope and event types. 2. Set up the server with connection handling. 3. Add keepalive (ping/pong) and reconnection. 4. Implement broadcast and room/scope routing. 5. Add backpressure handling for slow clients. 6. Auth at the handshake (token/cookie). 7. Scale with a pub/sub backbone for multi-node. 8. Monitor connections, messages, and errors. 1. Messages round-trip bidi

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
ssrjkk/agent-skills
Source file
.claude/skills/backend/websockets/SKILL.md
Fixed revision
868975614072b553f929cb32c52c5e7dc4ba8734
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: ssrjkk/agent-skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-11T03:01:42.279Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.