For Workers & Pages, what is the name of the domain?
Any domain.
What is the issue or error you’re encountering
Websocket disconnects due to 1MB size limit!!
What steps have you taken to resolve the issue?
My websocket app kept getting the strange “Message is too large” error, and it turns out, Cloudflare imposes a hard limit on how much you can send in a single message! This also wasted over 77% of my usage quota due to constant disconnects!!!
AND THIS TOOK ME 3 HOURS BECAUSE OBVIOUSLY INFO THIS IMPORTANT NEEDS TO BE BURIED IN THE DOCS!! SO HERES THE INFO:
WebSockets · Cloudflare Workers docs.
WebSocket messages received by a Worker have a size limit of 1 MiB (1048576). If a larger message is sent, the WebSocket will be automatically closed with a 1009 “Message is too large” response.
This is so ANNOYING!! A lot of applications relying on large messages would FAIL, HENCE THE QUESTION, CAN THERE BE AN option to increase the websocket message size limit??
DO NOT ASK ME TO CHANGE THE BEHAVIOR OF THE APP; I AM USING THE WORKER TO PROXY AN EXTERNAL SERVICE.