java - WebSocketContainer.connectToServer seems to hang -


when try make websocket session through java application using websocketcontainter.connecttoserver seems hang. don't indication there exception, or connection made. code doesn't execute past connecttoserver call.

    string default_uri = "ws://blah/ws/test";     websocketcontainer wscontainer =  containerprovider.getwebsocketcontainer();     session session = wscontainer.connecttoserver(myclient.class, new uri(default_uri));      //this line never gets executed. session above isn't returned nor error     system.out.println(session); 

from example, i'd expect sort of connection error seeing i'm trying establish connection websocket address isn't valid. when using valid ws address don't progress past getting connection return session.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -