Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does websockets work with SPDY?

I'm using socket.io, if I use a SPDY server for my app would socket.io / websockets still work?

Thanks.

like image 502
Harry Avatar asked Jan 05 '12 22:01

Harry


2 Answers

SPDY is basically a variation of HTTP/S that accelerates web page load time. WebSockets is not HTTP (even though it has an HTTP compatible initial handshake). They are unrelated (except that they both address web latency) and they are compatible. Your SPDY enabled web server may not support forwarding of WebSockets connections, but you can always run your WebSockets server standalone on a different port if that is the case.

like image 159
kanaka Avatar answered Oct 05 '22 23:10

kanaka


There is work in progress to enable WebSockets over SPDY. Chrome currently has an experimental flag for this: --enable-websocket-over-spdy. To track latest progress and status on this, checkout the spdy-dev discussions on google groups.

like image 35
igrigorik Avatar answered Oct 06 '22 00:10

igrigorik