I am using AWS gamelift realtime server (NodeJS) for my server backend.
I recently noticed a limitation of the size of the WebSocket packet of around 4KB.
When a client do send a packet reaching that limit, the WS library sends a RangeError, Max payload size exceeded. This error bubbles until it becomes a Process uncaught Exception
This error is then caught by gamelift.js to log the error
Realtime server crashed due to: process.uncaughtException, but then exits.
Is there any way I can recover from the error and not exits my server ? I tried to adds another
process.on('uncaughtException but it does not seems to be called.
I wish I was able to discard the message.
Also, I am not a security expert, but it seems to me to be a vector of DOS attack.