14

我正在使用 socket.io,如果我为我的应用程序使用 SPDY 服务器,socket.io / websockets 仍然可以工作吗?

谢谢。

4

2 回答 2

7

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.

于 2012-01-05T22:53:08.963 回答
5

在 SPDY 上启用 WebSockets 的工作正在进行中。Chrome 目前对此有一个实验性标志:--enable-websocket-over-spdy. 要跟踪这方面的最新进展和状态,请查看 google 群组上的 spdy-dev 讨论。

于 2012-03-24T17:29:21.270 回答