Atmosphere/nettosphere — pull request #25 by BrynCooke (2012-11-19 21:35:48+00:00)
Title: https://github.com/Atmosphere/nettosphere/issues/23

Added support for BinaryWebSocketFrame to NettyAtmosphereHandler.handleWebSocketFrame

Please bear in mind that I know almost nothing about atmosphere, so this is unlikely to be an optimal solution, but it seems to be working for me in simple tests.

Notes/Observations:
* I had to override SimpleHttpProtocol.onMessage(WebSocket webSocket, byte[] d, final int offset, final int length) from atmosphere to prevent data being converted to string. My gut feeling is that this should be applied to atmosphere, but there may be a reason for the existing behaviour that I don't understand.
* DefaultBroadcaster.push in atmosphere has some code to do with delayed broadcasts that looks like it is expecting a string rather than binary data. I didn't tackle this.
* I had to configure the host with ApplicationConfig.WEBSOCKET_BINARY_WRITE=true

Hope this is useful.