Home > Article > Backend Development > What is the best way to implement a chat tool if needed on the site?
Good afternoon fellow seniors.
Now I have a question. Currently, the website needs to establish an on-site member real-time chat tool for one-to-one private chat. It is developed using php.
The first implementation method that comes to mind is polling, but it will consume more resources.
Could you please tell me if there are any good solutions besides this?
Good afternoon fellow seniors.
Now I have a question. Currently, the website needs to establish an on-site member real-time chat tool for one-to-one private chat. It is developed using php.
The first implementation method that comes to mind is polling, but it will consume more resources.
Could you please tell me if there are any good solutions besides this?
Take a look at laychat written by Workerman. It is written in PHP. The backend source code is open
http://www.workerman.net/layc...
workermanhttp://www.workerman.net/
websocket
http://www.rongcloud.cn
Integrate it
If you want a ready-made one, you can use workman, or you can write your own socket
You can use IM services provided by third parties.
The more reliable ones include Rongyun and NetEase Yunxin.
My company currently uses NetEase Cloud Letter.