2 Replies Latest reply on Nov 4, 2014 11:54 PM by saik

    WebSockets Client Not Receiving message

    saik

      I am currently using WildFly 8.1.0.

       

      I use @ServerEndPoint and @ClientEndPoint. Everything works great, server receives my binary message @OnMessage, and I do this:

      ....

      session.getAsyncRemote().sendBindary(a byte buf);

      ..

      No exceptions whatsoever, and Client does not get server side send.

       

      I do the same on the client @OnMessage on a void method(bytebuff, session) signature.

       

      where did I miss?

      Thanks

        • 1. Re: WebSockets Client Not Receiving message
          jaikiran

          Please post the relevant code or attach an application which reproduces this. Also, please try it against the latest nightly build WildFly nightly builds available and see if it works there.

          • 2. Re: WebSockets Client Not Receiving message
            saik

            I think I got the problem resolved.

             

            What had happened was I changed my Client to extend from EndPoint so that I can connectToServer with the client endpoint config argument to pass certain parameters. I had kept the @ClientEndPoint annotations as is. Perhaps I can't do both.

             

            I'm now purely using the annotations.. I might come back removing the annotations to try out the other signature to pass the config, but will ensure to remove annotations and check it out.

             

            Thanks

            Sai