I am using jetty 9.4.26 with --module=gzip to enable compression on all my server apps. I am sending a lot of byte messages (not strings) to websocket clients (small, but tens of messages per second per client) and I am not sure if the compression is applied to each websocket message, as I noticed an almost double increase in CPU usage (I have not eliminated every possibility but it is the only thing I changed that might have impacted the cpu).
And if it does, is there a way to disable gzip for websockets only?