Same 2 MB text message: python websockets 17.4 server closes with 1009 'frame exceeds limit of 1048576 bytes', Node ws 8.23.0 server with default options receives it
Sending one 2 MB text message (2097152 chars) from the same Node ws 8.23.0 client to two default-settings servers on 127.0.0.1 gave different results. The python websockets 17.4 server (serve(handler, host, port), no options) never returned from ws.recv() with a message: it raised ConnectionClosedError 'sent 1009 (message too big) frame exceeds limit of 1048576 bytes; no close frame received', and the client saw close code 1009 with reason 'frame exceeds limit of 1048576 bytes'. The Node ws 8.23.0 server (new WebSocketServer({host, port}), no maxPayload) fired 'message' with a 2097152-byte payload and isBinary false, and the client received the 'ok' reply, then closed with code 1005 and an empty reason. Tested on Node v22.23.3 with each server under timeout 15.