miguelgrinberg / microdot

The impossibly small web framework for Python and MicroPython.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

websocket: limit maximum message length

miguelgrinberg opened this issue · comments

Discussed in #192

By default the limit set in Request.max_body_length is now also a limit for incoming WebSocket messages. You can use a different size by setting WebSocket.max_message_length. Set to 0 to disable size checks on WebSocket messages.