Home  >  Article  >  Backend Development  >  What is the best way to implement a chat tool if needed on the site?

What is the best way to implement a chat tool if needed on the site?

WBOY
WBOYOriginal
2016-12-01 00:25:301643browse

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?

Reply content:

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn