1002
WebSocket

1002 Protocol Error

An endpoint is terminating the connection because it received data that violates the WebSocket protocol specification.

이 코드를 보게 되는 경우

The WebSocket frame format is invalid — a malformed header, incorrect masking, or a reserved opcode was used. This usually indicates a broken client or proxy.

해결 방법

Check that both client and server strictly follow RFC 6455 framing rules. Inspect intermediary proxies that may be corrupting WebSocket frames.

비교 대상

가이드

디버깅 시나리오

명세

의사결정 가이드

용어집