Home > Backend Development > PHP Tutorial > 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
Release: 2023-03-01 16:16:02
Original
1770 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template