websocket-debugger

Debug Django Channels WebSocket connections, authentication, and Redis message delivery.

Updated Sep 22, 2025
One-click install
npx skills add https://github.com/allthriveai/allthriveai --skill websocket-debugger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: websocket-debugger
Source: https://github.com/allthriveai/allthriveai/tree/main/.claude/skills/websocket-debugger
Command: npx skills add https://github.com/allthriveai/allthriveai --skill websocket-debugger

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you diagnose and fix WebSocket connection and messaging issues in Django Channels, including authentication, channel layers, and Redis integration.

Core Features & Use Cases

  • Connection & Handshake Verification: Ensure the WebSocket connects and completes the handshake.
  • Authentication over WS: Validate JWT/auth headers and middleware processing.
  • Channel Layer & Redis Debugging: Inspect channel groups and Redis pub/sub for message delivery.
  • Real-time Messaging Troubleshooting: Diagnose missing or delayed messages and streams.

Quick Start

Connect to a test WebSocket endpoint, verify the token is valid, monitor channel logs, and test message flow end-to-end.

Frequently Asked Questions about websocket-debugger

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

FAQPage Schema
How do I debug WebSocket connection failures in Django Channels?

Debug WebSocket connection failures by verifying the handshake completes, checking ASGI/Daphne configuration, validating JWT authentication headers through TokenAuthMiddleware, and inspecting Django Channels consumer logs for routing or connection errors.

Why are WebSocket messages not being received in Django Channels with Redis?

Missing messages typically indicate Redis channel layer misconfiguration, channel group subscription issues, or pub/sub delivery problems. Trace message flow end-to-end, inspect Redis pub/sub logs, verify channel groups are receiving broadcasts, and check for dropped WebSocket frames.

How do I verify JWT authentication over WebSocket in Django Channels?

Validate JWT tokens by inspecting auth headers at the WebSocket handshake, confirming TokenAuthMiddleware processes credentials correctly, testing token validity before connection, and monitoring middleware logs to catch authentication errors before the consumer receives frames.

Can I debug real-time messaging delays and streaming disruptions in Django Channels?

Diagnose delays by monitoring Redis pub/sub delivery latency, tracing message routing through channel groups, checking for backpressure in consumers, and reviewing Daphne logs for frame buffering or connection state issues causing stream interruption.

What's the best way to troubleshoot misrouted or dropped WebSocket frames in Django Channels?

Identify routing issues by validating consumer routing configuration, inspecting channel layer message delivery logs, verifying channel group memberships, and testing frame transmission end-to-end with Redis pub/sub monitoring to catch dropped or misdirected messages.

Does debugging Django Channels WebSocket issues require Redis and ASGI setup?

Yes. Effective debugging requires Django Channels with ASGI, Daphne server, Redis channel layer for pub/sub, JWT-based TokenAuthMiddleware for authentication, and access to core project modules including consumers, routing configuration, middleware, and background tasks.