You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i used a simple client server socket.io communication over various environments using secured connection.
See in the table below, Safari behave differently on http and https
this cause a sever performance issue
<html><head><div>Simple example how Safari on windows use different transportation for http and https connections</div><scriptsrc="/socket.io/socket.io.js"></script><script>varbaseUrl=window.location.protocol+"//"+window.location.host,// socket = io.connect(baseUrl,{secure:true});socket=io.connect(baseUrl);socket.on('news',function(data){alert("got smth");setTimeout(function(){socket.emit('my other event',{my: 'data',timestamp: newDate()});},1000);});</script></head><body></body></html>
Results table:
Browser (http) (http) (http) (SSL) (SSL) (SSL)
Windows Linux Mac Windows Linux Mac
FF(18) websocket websocket websocket websocket
IE(8) flashsocket flashsocket
Chrom(24) websocket websocket websocket websocket
Safari websocket websocket xhr-polling websocket
Opera(11) flashsocket flashsocket
The text was updated successfully, but these errors were encountered:
i used a simple client server socket.io communication over various environments using secured connection.
See in the table below, Safari behave differently on http and https
this cause a sever performance issue
server.js:
client.html:
Results table:
The text was updated successfully, but these errors were encountered: