websocket-engineer

Design and implement WebSocket and Socket.IO systems with Redis pub/sub.

Updated Jun 16, 2026
One-click install
npx skills add https://github.com/Design-System-ET/genexus-dev-opencode --skill websocket-engineer-design-system-et
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: websocket-engineer
Source: https://github.com/Design-System-ET/genexus-dev-opencode/tree/main/skills/websocket-engineer
Command: npx skills add https://github.com/Design-System-ET/genexus-dev-opencode --skill websocket-engineer-design-system-et

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires socket.io, redis, jsonwebtoken, ioredis, sanitize-html, joi, and includes references (resource) components.

What problem does it solve?

This skill addresses the complexity of implementing reliable, bidirectional real-time communication, handling the common pitfalls of state management, connection scaling, and message delivery in distributed systems.

Core Features & Use Cases

  • Architecture Design: Provides patterns for clustering, pub/sub via Redis, and load balancing with sticky sessions.
  • Reliability & Scaling: Includes strategies for message queuing during disconnections, heartbeat monitoring, and horizontal scaling.
  • Use Case: Ideal for developers building chat applications, collaborative editing tools, or live dashboards that require low-latency updates and high availability across multiple server instances.

Quick Start

Use the websocket-engineer skill to design a scalable Socket.IO architecture with Redis pub/sub for a real-time chat application.

Frequently Asked Questions about websocket-engineer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scale Socket.IO horizontally across multiple server instances?

To scale Socket.IO horizontally, this skill uses Redis pub/sub to broadcast messages and synchronize connection states across distributed server clusters. It also configures load balancing with sticky sessions to ensure reliable real-time message delivery.

What is the best way to handle WebSocket reconnection and presence tracking in a distributed real-time system?

Handling WebSocket reconnection and presence tracking requires heartbeat monitoring and connection state synchronization. This skill implements reliable reconnection logic and presence tracking to manage user availability across clustered server environments.

How do I authenticate WebSocket connections using JSON Web Tokens in a real-time application?

Authenticating WebSocket connections with JSON Web Tokens involves validating tokens during the initial handshake. This skill integrates secure authentication mechanisms to protect real-time bidirectional communication channels across distributed clusters.

Can I use Redis pub/sub for room-based messaging in a real-time chat application?

Yes, Redis pub/sub can be used for room-based messaging in real-time chat applications. This skill designs architectures that route messages to specific rooms while managing message queuing during disconnections for low-latency delivery.

Does this approach to real-time communication support message queuing during client disconnections?

Yes, this real-time communication approach supports message queuing during client disconnections. It includes reliability strategies that queue missed messages and synchronize connection states once the client successfully reconnects.