Let's take a look at how HTML5 Web Sockets work with proxy servers.
让我们看看HTML5Web Sockets是如何与代理服务器工作的。
This behavior is a problem with long-lived connections such as Web Sockets.
这一行为对于长久的连接,比如WebSockets来说,是存在问题的。
Figure 1-web Sockets architecture with explicit and transparent proxy servers.
图1——有着显式和透明的代理服务器的Web Sockets架构。
Let's start with some basic concepts: what exactly are HTML5 Web Sockets and proxy servers?
让我们从一些基本概念开始:HTML5Web Sockets和代理服务器究竟是什么?
In some cases additional proxy server configuration may be required, and certain proxy servers may need to be upgraded to support Web Sockets.
在一些情况下可能需要一些额外的代理服务器配置,而一些特定的代理服务器可能需要被升级以支持Web Sockets。
In the future, WebSocket gateways and servers may even be able to dynamically upgrade to Web Sockets Secure if an uncooperative proxy server is detected.
未来,WebSocket网关和服务器能够支持在探测到不合作的代理服务器时,动态地升级到WebSocket安全。
The HTML5 web Sockets specification defines the web Sockets API that enables web pages to use the web Socket protocol for full-duplex communication with a remote host.
HTML5Web Sockets规范定义了Web SocketsAPI,支持页面使用WebSocket协议与远程主机进行全双工的通信。
To use HTML5 Web Sockets to connect from a Web client to a remote end-point, you create a new WebSocket instance and provide it with the URL that represents the end-point to which you want to connect.
要使用HTML5Web Sockets从一个Web客户端连接到一个远程端点,你要创建一个新的WebSocket实例并为之提供一个URL来表示你想要连接到的远程端点。
To use HTML5 Web Sockets to connect from a Web client to a remote end-point, you create a new WebSocket instance and provide it with the URL that represents the end-point to which you want to connect.
要使用HTML5Web Sockets从一个Web客户端连接到一个远程端点,你要创建一个新的WebSocket实例并为之提供一个URL来表示你想要连接到的远程端点。
应用推荐