Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebSocket connectivity issues

I have one websocket server running in java application written using https://github.com/TooTallNate/Java-WebSocket and trying to connect to it from browser. The browser is sending request to connect every second till the websocket server initializes. Chrome connects blazingly fast as soon the websocket is initialized. Firefox takes atleast 10-15 seconds to connect. Is there any way firefox to connect as chrome connects. I have checked the headers in both browser "keep-alive" header is sent in firefox and chrome doesnot send. Will it be affecting the connection ?

like image 726
AtherSajjad Avatar asked Dec 09 '25 01:12

AtherSajjad


1 Answers

First test with this.. http://demos.kaazing.com/echo/ so that you will be able to know which side is the problem.

like image 51
Nitish Dhapodkar Avatar answered Dec 11 '25 16:12

Nitish Dhapodkar