CCM
/Skills
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Claude Code Marketplaces

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Skill index
  • MCP index
  • Marketplace index
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by mertbuilds.com

Independent project, not affiliated with Anthropic
mindrally avatar

Websocket Development

mindrally/skills
698 installs223 stars
Summary

This one walks you through building production-ready WebSocket applications with attention to the details that matter: connection lifecycle management, message correlation patterns, and horizontal scaling with message brokers. It covers security fundamentals like token-based auth during handshakes and rate limiting, plus framework-specific advice for Node.js, Bun, and browser clients. The guidance on heartbeat mechanisms, exponential backoff reconnection, and pub/sub patterns is practical. If you're moving beyond basic WebSocket tutorials and need to handle real user loads, disconnections, and cross-server communication, this gives you the systematic approach to avoid the common pitfalls.

Install to Claude Code

npx -y skills add mindrally/skills --skill websocket-development --agent claude-code

Installs into .claude/skills of the current project.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
Files
SKILL.mdView on GitHub

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

  • Think through the implementation step-by-step before writing code
  • Follow the user's requirements carefully and to the letter
  • Prioritize security, scalability, and maintainability throughout
  • Leave NO todos, placeholders, or missing pieces in the implementation

Connection Management

Establishing Connections

  • Always use the wss:// protocol with SSL/TLS encryption for production environments
  • This ensures data transmitted over the connection is encrypted and secure from eavesdropping or tampering
  • Implement proper handshake validation before accepting connections
  • Set appropriate connection timeouts to prevent resource exhaustion

Connection Lifecycle

  • Implement heartbeat/ping-pong mechanisms to detect stale connections
  • Use reconnection logic with exponential backoff for dropped connections
  • Maintain connection state to handle disconnection scenarios gracefully
  • Clean up resources properly when connections close

Message Handling

Message Design

  • Use structured message formats (JSON with type/payload pattern)
  • Include message IDs for request-response correlation
  • Implement message versioning for backward compatibility
  • Keep message payloads small to reduce latency

Error Handling

  • Always include error handling logic for WebSocket connections
  • Manage potential disconnections or message failures gracefully
  • Implement dead letter handling for unprocessable messages
  • Log errors with sufficient context for debugging

Scalability Patterns

Horizontal Scaling

  • Use a message broker (Redis Pub/Sub, RabbitMQ) for cross-server communication
  • Implement sticky sessions or connection affinity when needed
  • Design stateless handlers where possible
  • Consider using a dedicated WebSocket gateway service

Performance Optimization

  • Buffer messages during brief disconnections
  • Implement message batching for high-frequency updates
  • Use binary protocols (MessagePack, Protocol Buffers) for bandwidth-sensitive applications
  • Monitor connection counts and message throughput

Security Best Practices

Authentication

  • Authenticate connections during the handshake phase
  • Use token-based authentication (JWT) with proper expiration
  • Validate tokens on both connection and periodic intervals
  • Implement rate limiting per connection and per user

Authorization

  • Validate permissions for each message type/channel
  • Implement channel-based access control for pub/sub patterns
  • Never trust client-provided data without validation
  • Sanitize all incoming message payloads

Framework-Specific Guidelines

Node.js Native WebSocket (v21+)

  • Utilize Node.js's built-in WebSocket client for real-time communication to reduce dependencies
  • The built-in client simplifies real-time communication and ensures better interoperability
  • For servers, use established libraries like ws or framework-specific solutions

Bun Runtime

  • Prefer Bun's native capabilities over third-party alternatives
  • Use Bun.serve() with WebSocket support instead of separate WebSocket libraries
  • Leverage Bun's built-in stream handling and fetch implementation

Browser Clients

  • Implement graceful degradation for older browsers
  • Use the standard WebSocket API for broad compatibility
  • Handle visibility changes to manage connection state
  • Implement offline detection and queuing

Testing Strategies

Unit Testing

  • Mock WebSocket connections for isolated testing
  • Test message serialization/deserialization independently
  • Verify error handling paths

Integration Testing

  • Test full connection lifecycle scenarios
  • Verify reconnection behavior under various failure modes
  • Load test with realistic connection counts and message rates

Monitoring and Observability

  • Track connection count metrics
  • Monitor message latency and throughput
  • Alert on connection error rates
  • Log connection lifecycle events for debugging

Common Patterns

Pub/Sub Pattern

  • Implement channel subscription management
  • Use efficient data structures for subscriber lookup
  • Handle subscription cleanup on disconnect

Request/Response Pattern

  • Correlate requests and responses with unique IDs
  • Implement timeout handling for pending requests
  • Consider using acknowledgment messages for reliability

Broadcast Pattern

  • Optimize for one-to-many message delivery
  • Consider message deduplication strategies
  • Implement backpressure for slow consumers
Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
Categories
Backend & APIs
First SeenJun 3, 2026
View on GitHub

More from mindrally/skills

All 240 skills →
  • Performance Optimization695
  • Blazor693
  • Python Odoo Cursor Rules693
  • Api Development692
  • Openai Api Development692
  • Expo React Native Javascript Best Practices688
  • Hono Typescript688
  • Three Js688
  • Vue Typescript687
  • Laravel686
  • Testing686
  • Aspnet Core684
  • Github Workflow680
  • Styled Components Best Practices678
  • Git Workflow677
  • Android Development675
  • Deno Typescript671
  • Pwa Development671
  • Rust671
  • Data Analyst669
  • Gsap668
  • Bitbucket Workflow665
  • Cpp659
  • Transformers Huggingface659

Recommended

More Backend & APIs →
mindrally avatar
api-development

mindrally/skills

Guidelines for building clean, scalable APIs with Go standard library and NestJS TypeScript, covering security, validation, and modular architecture.
692
223
mindrally avatar
openai-api-development

mindrally/skills

Expert guidance for OpenAI API development including GPT models, Assistants API, function calling, embeddings, and best practices for production applications.
692
223
sickn33 avatar
graphql

sickn33/antigravity-awesome-skills

graphql
690
43.1k
patternsdev avatar
server-side-rendering

patternsdev/skills

Teaches server-side rendering (SSR) for React applications. Use when you need faster initial page loads, better SEO, or dynamic per-request HTML generation.
683
235
encoredev avatar
encore-api

encoredev/skills

Define typed API endpoints in Encore.ts using `api(...)` from `encore.dev/api`. Covers typed request/response interfaces, path/query/header/cookie params, request validation, and `APIError`. For raw endpoints (`api.raw()`) and inbound webhooks, use `encore-webhook` instead.
679
26
sickn33 avatar
postgresql

sickn33/antigravity-awesome-skills

postgresql
664
43.1k