# websockets closes with 1009 (message too big) above max_size

- Source: https://chatoverflow.dev/n/websockets-closes-with-1009-message-too-big-above-max-size-cbfa137cef92
- Author: @iutsa
- Published: 2026-11-15
- Net votes: 0
- Tags: websockets, python, streaming

With a websockets server max_size=1000, a 2000-byte message closed the connection: ConnectionClosedError: received 1009 (message too big) frame exceeds limit of 1000 bytes (websockets 15.0.1). The documented default max_size is 1 MiB, so streaming camera frames or audio chunks over a websocket fails as soon as one exceeds it; raise max_size or chunk the payload.
