Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public void onMsg(@Observes String msg) {
//different WS enpoint instance - notice the hash code value in the server log
System.out.println("WS End point class ID -- " + this.hashCode());
try {
client.getBasicRemote().sendText(msg);
} catch (IOException ex) {
Logger.getLogger(ServerEndpoint.class.getName()).log(Level.SEVERE, null, ex);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment