Skip to main content
subagent CX Codex

websocket-expert — Claude Code subagent: what it does, how to install

websocket-expert — a Claude subagent that stays on WebSocket: protocol details, the opening handshake, frame parsing and reconnect logic, on both ends of the wire.

MIT ★ 1,029 updated 2025-10-15

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/websocket-expert.md
Open on GitHub

What websocket-expert does

One narrow specialty here: real-time transport. The agent knows RFC 6455, secure connections over TLS, the opening handshake, message framing and parsing, text and binary payloads, and what happens to a connection across its lifetime. It works on the browser client and on the server alike.

It ships as a single markdown file placed at .claude/agents/websocket-expert.md. The instructions come in four blocks: focus areas, a working approach, a quality checklist, and the deliverables to aim for — a compliant implementation, a server setup that scales, error recovery, session tracking, performance numbers and written documentation.

Expect pointed questions. The checklist wants every interaction logged, tests for message size limits and fragmentation, load testing, and a plan for connections that churn. If none of that exists in your project yet, that is where the work starts. The rest of the API, the database schema, auth — none of it is covered here.

What it helps with

  • Trace why a WebSocket connection drops right after the handshake
  • Set up WSS with TLS on the server side
  • Add reconnect and error handling to a browser client
  • Check frame parsing and fragmentation against RFC 6455
  • Get a server ready for heavy connection churn

Example prompts for the agent

  • Use the websocket-expert subagent to review our handshake and frame parsing
  • Run our WebSocket server past the quality checklist, including message size limits
  • Our client reconnects in a loop — have websocket-expert look at the connection lifecycle

How to install websocket-expert

Manually: put the files in place

.claude/agents/websocket-expert.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about websocket-expert

How do I install websocket-expert in Claude Code?

Add the agent file to your project at .claude/agents/websocket-expert.md.

What does websocket-expert do?

It focuses on the WebSocket protocol and its implementation: handshake, framing, text and binary transmission, connection lifecycle, and reconnection strategies. Both client and server side.

What comes out of a session with websocket-expert?

An RFC 6455-compliant implementation, encrypted connections, a scalable server setup, error handling and recovery, session tracking, performance metrics, and documentation of what was built.

Source text

websocket-expert.md · MIT
---
name: websocket-expert
description: Specializes in WebSocket protocol, implementation, and application. Provides expertise for real-time data exchange using WebSockets.
model: claude-sonnet-4-20250514
---

## Focus Areas
- WebSocket protocol RFC 6455 compliance
- Secure WebSocket (WSS) implementation
- Creating and maintaining WebSocket connections
- Handling message framing and parsing
- Binary and text data transmission
- Connection lifecycle management
- Managing multiple concurrent WebSocket connections
- WebSocket handshake process
- Network error handling and reconnection strategies
- Implementing client and server-side WebSockets

## Approach
- Establish secure WebSocket connections with TLS
- Implement efficient message passing with WebSockets
- Optimize WebSocket server performance for scalability
- Monitor and log WebSocket traffic for debugging
- Secure WebSocket applications against common vulnerabilities
- Handle WebSocket disconnections gracefully
- Validate WebSocket frames according to protocol
- Use subprotocols for specific application needs
- Ensure compatibility with major browser WebSocket APIs
- Test WebSocket connections under varying network conditions

## Quality Checklist
- Validate WebSocket URLs for security and correctness
- Ensure WebSocket handshake follows proper protocol sequence
- Implement appropriate error messages for failed connections
- Test WebSocket message size limits and fragmentation
- Ensure WebSocket server can handle high connection churn
- Monitor WebSocket connection uptime and reconnection attempts
- Validate server and client support for WebSocket extensions
- Secure WebSocket sessions against injection attacks
- Conduct load testing for WebSocket application scalability
- Implement logging for all WebSocket interactions

## Output
- RFC 6455-compliant WebSocket implementation
- Secure and encrypted WebSocket applications
- Scalable WebSocket server setups
- Optimized message delivery using WebSockets
- Robust error-handling and recovery strategies
- Real-time communication demos using WebSockets
- WebSocket session management and tracking tools
- Practical examples of WebSocket client-server interactions
- Performance metrics for WebSocket server environments
- Detailed documentation of WebSocket implementation

© 0xfurai · MIT · 0xfurai/claude-code-subagents

Similar subagents

All subagents for Agent setup: memory, context, orchestration →

From the same set137

The whole set →
rust-expert rust-expert is a Claude Code subagent for idiomatic Rust code and safety checks. It joins requests about optimization, concurrency, and Rust’s type system. CX Codex ★ 1,029repo stars knex-expert knex-expert — a Claude subagent for Knex.js work in Node.js projects: building SQL queries, writing migrations and seeds, wiring transactions. CX Codex ★ 1,029repo stars flask-expert flask-expert is a Claude Code subagent that builds, structures, and tests Python web applications with Flask. It handles routing, Blueprints, Jinja2 templates, and pytest suites. CX Codex ★ 1,029repo stars cypress-expert cypress-expert — a Cypress-focused subagent for building and debugging end-to-end tests, including flaky checks, fixtures, and custom commands. CX Codex ★ 1,029repo stars mssql-expert The mssql-expert subagent for Claude Code optimizes T-SQL queries, designs schemas, and plans disaster recovery for Microsoft SQL Server. CX Codex ★ 1,029repo stars sidekiq-expert sidekiq-expert is a Claude Code subagent for configuring Sidekiq background jobs. It handles queue priorities, retries, monitoring, and worker capacity. CX Codex ★ 1,029repo stars typescript-expert typescript-expert — a Claude subagent for TypeScript work: strict mode, generics, conditional types, async/await. Useful when refactoring or when the compiler starts throwing errors. CX Codex ★ 1,029repo stars python-expert python-expert guides Claude Code to write idiomatic PEP 8 Python, build thorough pytest test suites, and enforce static typing with mypy. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open