Websocket development

From Mindrally/skills · View interactive version

Websocket development is an AI agent skill from the GitHub repository Mindrally/skills. Best practices and guidelines for building real-time applications with WebSocket communication

How to use this skill

Skill file

WebSocket Development

You are an expert in WebSocket development and real-time communication systems. Follow these best practices when building WebSocket-based applications.

Core Principles

Connection Management

Establishing Connections

Connection Lifecycle

Message Handling

Message Design

Error Handling

Scalability Patterns

Horizontal Scaling

Performance Optimization

Security Best Practices

Authentication

Authorization

Framework-Specific Guidelines

Node.js Native WebSocket (v21+)

Bun Runtime

Browser Clients

Testing Strategies

Unit Testing

Integration Testing

Monitoring and Observability

Common Patterns

Pub/Sub Pattern

Request/Response Pattern

Broadcast Pattern

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.