久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <small id='0GZMt'></small><noframes id='0GZMt'>

    1. <i id='0GZMt'><tr id='0GZMt'><dt id='0GZMt'><q id='0GZMt'><span id='0GZMt'><b id='0GZMt'><form id='0GZMt'><ins id='0GZMt'></ins><ul id='0GZMt'></ul><sub id='0GZMt'></sub></form><legend id='0GZMt'></legend><bdo id='0GZMt'><pre id='0GZMt'><center id='0GZMt'></center></pre></bdo></b><th id='0GZMt'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0GZMt'><tfoot id='0GZMt'></tfoot><dl id='0GZMt'><fieldset id='0GZMt'></fieldset></dl></div>
      <tfoot id='0GZMt'></tfoot>
    2. <legend id='0GZMt'><style id='0GZMt'><dir id='0GZMt'><q id='0GZMt'></q></dir></style></legend>

      • <bdo id='0GZMt'></bdo><ul id='0GZMt'></ul>

        Ajax 聊天輪詢帶寬效率

        Ajax chat polling bandwidth efficiency(Ajax 聊天輪詢帶寬效率)
        • <tfoot id='Z1sRb'></tfoot>
            <bdo id='Z1sRb'></bdo><ul id='Z1sRb'></ul>

              1. <legend id='Z1sRb'><style id='Z1sRb'><dir id='Z1sRb'><q id='Z1sRb'></q></dir></style></legend>
                  <tbody id='Z1sRb'></tbody>
              2. <small id='Z1sRb'></small><noframes id='Z1sRb'>

                • <i id='Z1sRb'><tr id='Z1sRb'><dt id='Z1sRb'><q id='Z1sRb'><span id='Z1sRb'><b id='Z1sRb'><form id='Z1sRb'><ins id='Z1sRb'></ins><ul id='Z1sRb'></ul><sub id='Z1sRb'></sub></form><legend id='Z1sRb'></legend><bdo id='Z1sRb'><pre id='Z1sRb'><center id='Z1sRb'></center></pre></bdo></b><th id='Z1sRb'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Z1sRb'><tfoot id='Z1sRb'></tfoot><dl id='Z1sRb'><fieldset id='Z1sRb'></fieldset></dl></div>
                  本文介紹了Ajax 聊天輪詢帶寬效率的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我編寫了一個小型 Web 應(yīng)用程序,它基本上是瀏覽器中的一個 JQuery 支持的聊天客戶端,為了獲取我正在使用 AJAX 請求輪詢服務(wù)器然后附加任何新回復(fù)的帖子,我很擔心這在不失去實時感的同時盡可能高效.

                  I've written a small web application which is basically a JQuery powered chat client within the browser, to get the posts I'm polling the server with an AJAX request and then appending any new replies, I'm worried about making this as efficient as possible while not losing the realtime feel.

                  http://darklightweb.co.uk/RealTime/

                  我看不到任何可能發(fā)生中斷的方式,因此我每 5 秒輪詢一次頁面,如果沒有可用的新帖子以保持數(shù)據(jù)傳輸處于空閑狀態(tài),則該頁面不返回任何內(nèi)容,如果它確實有消息頂部隊列中的消息被發(fā)送出去,我會在 Ajax 請求完成后再次檢查,直到消息隊列為空.

                  I can't see any way that interrupts are possible so I am polling a page every 5 seconds that returns nothing if no new posts are available to keep data-transfer down if it's idle, if it does have a message the top message in the queue is sent out and I'm checking again as soon as the Ajax request has finished until the message queue is empty.

                  關(guān)于使這個盡可能低帶寬或可能的替代實現(xiàn)的任何其他提示?

                  Any other tips on making this as low-bandwidth as possible or possible alternate implementations?

                  推薦答案

                  輪詢可能不是實現(xiàn)聊天的最佳解決方案 - 我建議看看 JQuery 的實現(xiàn) COMET 保持與客戶端的開放連接并從服務(wù)器關(guān)閉"推送更新,并且也是 相當可擴展.

                  Polling might not be the best solution for implementing a chat - I'd suggest taking a look at JQuery's implementation of COMET which keeps an open connection to the client and pushes updates from the server 'down' and is also quite scalable.

                  這篇關(guān)于Ajax 聊天輪詢帶寬效率的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調(diào)用完成)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發(fā)技術(shù)分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內(nèi)容)
                  XmlHttpRequest onprogress interval(XmlHttpRequest onprogress 間隔)

                  <small id='0Bgqm'></small><noframes id='0Bgqm'>

                  1. <legend id='0Bgqm'><style id='0Bgqm'><dir id='0Bgqm'><q id='0Bgqm'></q></dir></style></legend>

                    1. <i id='0Bgqm'><tr id='0Bgqm'><dt id='0Bgqm'><q id='0Bgqm'><span id='0Bgqm'><b id='0Bgqm'><form id='0Bgqm'><ins id='0Bgqm'></ins><ul id='0Bgqm'></ul><sub id='0Bgqm'></sub></form><legend id='0Bgqm'></legend><bdo id='0Bgqm'><pre id='0Bgqm'><center id='0Bgqm'></center></pre></bdo></b><th id='0Bgqm'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0Bgqm'><tfoot id='0Bgqm'></tfoot><dl id='0Bgqm'><fieldset id='0Bgqm'></fieldset></dl></div>
                        <bdo id='0Bgqm'></bdo><ul id='0Bgqm'></ul>

                        • <tfoot id='0Bgqm'></tfoot>
                            <tbody id='0Bgqm'></tbody>
                          • 主站蜘蛛池模板: 欧美日韩亚洲视频 | 国产精品福利在线 | 亚洲一区二区免费视频 | 成人免费淫片aa视频免费 | 国产精品看片 | 久热精品在线 | av中文字幕在线 | 亚洲免费片 | 紧缚调教一区二区三区视频 | av久久| 日韩在线免费播放 | 日韩欧美一区二区三区 | 欧美久久久网站 | av香蕉 | 欧美电影一区 | 91在线看 | 99re国产 | 国产中文在线 | 国产成人99av超碰超爽 | 国产激情一区二区三区 | 亚洲成人福利在线观看 | 91在线观看 | 一区二区三区四区视频 | 在线观看a视频 | 欧美日韩久久久久 | 国产欧美在线一区二区 | 美女黄网站视频免费 | 日韩欧美国产一区二区 | 亚洲高清视频在线观看 | 久久欧美高清二区三区 | 免费观看日韩精品 | 亚洲精品电影在线观看 | 九九热在线精品视频 | 日本一区二区三区免费观看 | 97视频免费 | 365夜爽爽欧美性午夜免费视频 | www.99热这里只有精品 | 第四色播日韩第一页 | 成人福利网| www.亚洲 | 日韩有码一区 |