1012
WebSocket

1012 Service Restart

The server is terminating the connection because it is restarting. The client should reconnect after a brief delay.

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

The server is performing a planned restart — for example, during a deployment or configuration reload. The connection will be available again shortly.

Cách khắc phục

Implement automatic reconnection with a short delay (1-5 seconds). This code signals that reconnecting is expected and should succeed once the server is back up.

So sánh với

Hướng dẫn

Thuật ngữ