阅读背景:

关闭第二个onopen方法的第一个事件源

来源:互联网 

I'm working on an app which uses the window.EventSource to stream data's on to a table view. Since there is a restriction on the max-connections-per-server limit as 6, i'm trying to have one EventSource object at a given point of time, so fundamentally i need to close the first eventsource object on the second one's onopen method and then the second one's onmessage event will stream the data to the table view. Consider the below code runs on an onclick event,I'm working on an app which uses the window.Eve




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

分享到: