Fork me on GitHub

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.


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.