阅读背景:

当客户端工作时服务器已关闭http连接时客户端Javascript可以检测吗?

来源:互联网 

In my application, the client is a Javascript set of functions in the browser, and it does some work - for example, playing a clip. It uses XmlHttpRequest to talk to the server. However, the server is allowed to abruptly close the connection since there is no other way it seems, to interrupt the client. Can the client detect, while it is playing the clip, that the connection was closed, and so print a message and erase the page? Any help appreciated. thanks, AnilIn my application, the client is a Javascript s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: