同样地,reconnected方法会将状态更改为STATE_CONNECTED,以让客户机知道它已再次连接到网络而且可以从服务器检索时间。
Similarly, the reconnected method changes the state to STATE_CONNECTED letting the client know it is again connected to the network and can retrieve times from the server.
在订阅了某个频道后,客户端和服务器间的连接会保持打开状态,并保持一段事先定义好的时间。
After a subscription to a channel, the connection between the client and the server is kept open, for a defined amount of time.
最后,浏览器接收会话持续时间并设置一个超时以保持连接处于活跃状态。
Finally, the browser receives the session duration time and sets a timeout to keep the connection alive.
应用推荐