I created a simple Chat Application working by websoket in java. I'm testing it on two different web servers, WildFly8 and Tomcat 7.0.53. it works real time on Tomcat but on WildFly8 there is something wrong. on browsers, Chrome, Firefox I can open new connection with no problem but when I try to send messages, they are not sent in real time. I mean, after some tries I refresh the browsers on the server side the messages just arrive! I have never faced such problem. I googled a lot nothing have found. Any Idea Why?