1008
WebSocket

1008 Policy Violation

An endpoint is terminating the connection because it received a message that violates its policy. This is a generic code when none of the other codes (1003, 1009) are suitable.

Khi bạn thấy mã này

The server rejected a message because it violated an application-level policy — for example, sending messages too rapidly, exceeding rate limits, or failing authentication after the handshake.

Cách khắc phục

Review the server's documented policies and constraints. Check for rate limiting, authentication token expiry, or forbidden message content that triggered the rejection.

So sánh với

Hướng dẫn

Tình huống gỡ lỗi

Đặc tả

Hướng dẫn quyết định

Thuật ngữ