Websocket @OnMessage is never firing for binary messages only text

2014-11-18 Thread Jason Ricles
I am writing a websocket communication with the client and server endpoints both in java code (using tomcat 7.0.53 as the web server) When I send a text message using the session.getbasicremote.sendText(String) method the @Onmessage function is fired and everything. However I want to send binary

Re: Websocket @OnMessage is never firing for binary messages only text

2014-11-18 Thread Konstantin Kolinko
2014-11-18 22:14 GMT+03:00 Jason Ricles jgr...@alum.lehigh.edu: I am writing a websocket communication with the client and server endpoints both in java code (using tomcat 7.0.53 as the web server) When I send a text message using the session.getbasicremote.sendText(String) method the

Re: Websocket @OnMessage is never firing for binary messages only text

2014-11-18 Thread Jason Ricles
Yup that flip did it and it works. Yes haha that was one of the many reasons I didn't major in something with more writing. Luckily its just a test method thats why I didn't double check the spelling. Thanks for the help. On Tue, Nov 18, 2014 at 3:00 PM, Konstantin Kolinko knst.koli...@gmail.com

Re: Websocket @OnMessage is never firing for binary messages only text

2014-11-18 Thread Jason Ricles
Why is the bytebuffer now filled with 0 and no data after doing a flip? On Tue, Nov 18, 2014 at 3:12 PM, Jason Ricles jgr...@alum.lehigh.edu wrote: Yup that flip did it and it works. Yes haha that was one of the many reasons I didn't major in something with more writing. Luckily its just a