WebSocket

1009 Message Too Big

An endpoint is terminating the connection because it received a message that is too large for it to process.

When You See This Code

The message payload exceeded the server's configured maximum frame or message size limit. Common when uploading large files or sending huge JSON payloads over WebSocket.

How to Fix

Reduce the message size by chunking large payloads into smaller frames. Alternatively, increase the server's max message size configuration if the large payload is expected.

Specification

View RFC / Specification →