aleph

daviddsison 2018-03-06T19:51:57.000117Z

I’m running a websocket server via aleph and when the client sends a message that exceeds the max-frame-payload there is a warning and the websocket connection is closed. What would be the best way to send that message back to the client before closing? It’s making it hard to provide a decent message since the actual exception is captured and logged as a warning.

daviddsison 2018-03-06T20:56:34.000467Z

Essentially io.netty.handler.codec.CorruptedFrameException: Max frame length of 65536 has been exceeded. is being swallowed without being able to tell the user that’s the reason the connection is being closed.