[wildfly-dev] WebSocket sendObject vs sendText
Arun Gupta
arun.gupta at gmail.com
Thu Dec 5 20:34:33 EST 2013
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
More information about the wildfly-dev
mailing list