I have a JavaScript WebSocket client and Tomcat WebSocket server (JSR 356). Whenever I try sending text data to the server from the JS client, I'm receiving the following error
Failed to decompress a compressed WebSocket frame
The WebSocket session was closed with the CloseCode 1002
. This issue occurs only in specific machine (JS ClientEndpoint). Moreover when this error is encountered, the text messages that I sent from ClientEndpoint were received incorrectly by ServerEndpoint
I tried searching for a solution to this issue in the internet. But nothing is relevant. Does anyone have a solution for this ?