Join GitHub today
Investigate a data compressing extension #558
HTTP transports can compress the whole body (which can be made of multiple Bayeux messages) selectively for bodies bigger than a threshold (e.g. Jetty's GzipFilter).
WebSocket transports can't typically compress multiple messages (as typically each Bayeux message is sent in one WebSocket frame); The permessage-deflate extension can compress single messages, but cannot do so selectively. Compression in WebSocket is either totally on or totally off.
Perhaps there is value in providing a CometD extension for large application data, where the application data is compressed (selectively only if bigger than a threshold).