Closed chiappone closed 10 years ago
Thanks for reporting this. It's fixed the next release. In the interim, you can try this work around
val data = if (event.wsFrame.content.readableBytes > 0) {
val a = new Array[Byte](event.wsFrame.content.readableBytes)
event.wsFrame.content.readBytes(a)
a
} else Array.empty[Byte]
event
is the WebSocketFrameEvent
when the binary data is received.
Thanks
I am working with a websocket client that sends binary data. When trying to read the event from the websocketFrame I get the following exception:
Do you have any ideas on a work around for this.
Thanks!