How to implement a chat room using Jquery/PHP?

前端 未结 10 1724
抹茶落季
抹茶落季 2020-12-02 07:12

I\'m looking to implement a chat room using PHP/Javascript (Jquery) with both group chat and private chat features.

The problem is how to continually update the inte

10条回答
  •  攒了一身酷
    2020-12-02 07:49

    I suggest you to try Socket.IO together with NodeJS. Socket.IO gives you a nice and very easy client API, works on most modern browsers and uses appropriate transport where possible (Websocket, long polling, etc). NodeJS is a server-side daemon, which holds HTTP connections. Official site of the Socket.IO contains information on how to use them together. Hope it will help you.

提交回复
热议问题