-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tomcat #312
Labels
Comments
Sounds like the socket is being closed right after opening, could be that the client is not compatible with Tomcat... Does the problem occur with a javascript client? |
Closing old issue without any clear exception. Greetings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Does anybody have problem with using WebSocketClient with Tomcat-7.0.61.
Client Code.
ExampleClient c = new ExampleClient( new URI( "ws:https://localhost:8080/WebSocketProxy/websocket/echoAnnotation"), new Draft_17() );
c.connect();
c.send("hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
onOpen is called and replies.
onMessage is never called whatever i do.
//Server code on Tomcat
@serverendpoint("/websocket/echoAnnotation")
public class EchoAnnotation {
@OnMessage
public void onMessage(Session session, String message ) {
System.out.println( "server received: " + message );
}
@OnMessage
public void onMessage(Session session, ByteBuffer message ) {
System.out.println( "server onMessage bytebuf: ");
}
Thanks,
Hugo
The text was updated successfully, but these errors were encountered: