且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

流程分块响应与angularjs $ HTTP

更新时间:2022-04-12 22:16:13

我已经找到一种方法去做一些看起来正确的我
http://www.igvita.com/ 2011/8月26日/服务器发送的事件的通知与 - HTML5 /

I've found a way to do something that looks correct to me http://www.igvita.com/2011/08/26/server-sent-event-notifications-with-html5/

当然也有WebSocket的API,但是它为我的用途接缝重

Of course there is also the websocket api, but it seams heavy for my uses

另一种可能性是写另一个HTTP服务,这将使通过HTTP响应控制

Another possibility would be the write another http service which would give control over the http response