How does in-browser chat work?

前端 未结 6 752
攒了一身酷
攒了一身酷 2020-12-24 06:53

Just curious. How exactly does chatting in a browser work? Usually if a user goes to a web page, his/her webbrowser requests the page content. A server produces output and s

6条回答
  •  盖世英雄少女心
    2020-12-24 07:36

    I've develop a browser chat similar to facebook chat technology ( http://chatsign.com ). It is not a push technology but something better than polling, its call ajax long polling.

    For more information about ajax long polling you can do some research or visit : http://techoctave.com/c7/posts/60-simple-long-polling-example-with-javascript-and-jquery

提交回复
热议问题