The WebSocket Chat sample was not working on WildFly, until now.
I figured out that getBasicRemote().sendObject(...) was used to send a
String to all the connected clients. The code in @OnMessage looked
like:
for (Session peer : client.getOpenSessions()) {
peer.getBasicRemote().sendText(message);
}
I changed sendObject to sendText(...) and now its working. What is
causing this to break ?
Arun
--
http://blog.arungupta.me
http://twitter.com/arungupta