In the JS WebSocket library, you can limit the maximum allowed incoming message size via the maxPayload
option.
I'd like to impose this limit in my Nginx reverse proxy layer, before it gets to my application server.
Does Nginx have a similar concept? Does client_max_body_size
(doc) apply to incoming websocket messages?