1006
WebSocket
1006 Abnormal Closure
A reserved value indicating the connection was closed abnormally without a Close frame being sent. This code must not be set by an endpoint.
このコードが表示される場合
The TCP connection dropped unexpectedly — the server crashed, the network cable was unplugged, or a firewall killed the idle connection. No proper WebSocket Close handshake occurred.
解決方法
Implement reconnection with exponential backoff. Use WebSocket ping/pong frames to detect dead connections early. Check for network-level timeouts or aggressive load balancer idle limits.
比較対象
ガイド
Debugging CORS Errors: A Developer's Guide
Debugging & Troubleshooting
Debugging WebSocket Disconnections
Debugging & Troubleshooting
WebSocket Close Codes: Why Your Connection Dropped
Real-Time Protocols
WebSocket Authentication Patterns
Real-Time Protocols
WebSocket vs Server-Sent Events: Choosing the Right Protocol
Real-Time Protocols
WebRTC Signaling with SIP and WebSocket
Real-Time Protocols
gRPC Streaming vs REST Polling: Real-Time Data Delivery
Real-Time Protocols
MQTT Protocol: Lightweight Messaging for IoT and Real-Time Systems
Real-Time Protocols
WebSocket Performance Tuning
Performance & Optimization
RFC 6455: WebSocket Protocol Deep Dive
Protocol Deep Dives
RFC 9114: HTTP/3 Protocol Deep Dive
Protocol Deep Dives
QUIC Protocol: The Transport Layer Behind HTTP/3
Protocol Deep Dives
TLS 1.3: Faster, Simpler, More Secure
Protocol Deep Dives
Migrating from WebSocket to Server-Sent Events
Migration & Upgrades
Reverse Proxy Configuration: Nginx, Caddy, and HAProxy
Production Infrastructure
Connection Draining: Graceful Shutdown Without Dropping Requests
Production Infrastructure
API Gateway Patterns: Architecture and Use Cases
API Gateway Patterns
API Gateway Request Routing: Path, Header, and Content-Based
API Gateway Patterns
Request and Response Transformation at the API Gateway
API Gateway Patterns
CORS Handling at the API Gateway
API Gateway Patterns
API Security Testing: OWASP ZAP, Burp Suite, and Automated Scanning
Testing & Mocking
デバッグシナリオ
1008 Policy Violation — Authentication Timeout
Intermediate
1009 Message Too Big — Payload Size Limit
Intermediate
1015 TLS Handshake Failure — Certificate Mismatch
Advanced
1011 Internal Error — Server Crash During Stream
Intermediate
1002 Protocol Error — Invalid Frame from Proxy
Advanced
1013 Try Again Later — Server Overloaded
Intermediate
仕様
用語集
GraphQL
CORS (Cross-Origin Resource Sharing)
Port Number
Latency
NAT (Network Address Translation)
Socket
Bandwidth
Backpressure
Thundering Herd
Request-Response Model
RFC (Request for Comments)
Protocol Upgrade
Multiplexing
Message Framing
Full-Duplex
WebSocket Frame
WebRTC (Web Real-Time Communication)
Signaling
ICE Candidate
WebSocket Subprotocol
WebSocket Ping/Pong
WebSocket Close Code
STUN (Session Traversal Utilities for NAT)
TURN (Traversal Using Relays around NAT)
SDP (Session Description Protocol)
MQTT (Message Queuing Telemetry Transport)
STOMP (Simple Text Oriented Messaging Protocol)
RTP (Real-time Transport Protocol)
Codec Negotiation