How does thinkphp implement real-time message communication?

first of all, the title of this question is inaccurate, so let"s explain the requirements.

is using thinkphp 5.1 as an information management background. Now there is a need to have some real-time information, such as messages within the enterprise, pop-up windows to remind you in the background page when there are new records in the database. I feel that the performance of the front-end implementation is too poor (nothing more than a timer to make an API request at intervals), what server-side frameworks and tools are available? No experience, please tell me which method is better, thank you ~

Php
Jun.16,2021

use the socket,
framework to have workerman and swoole, of your choice.


thinkphp5 has built-in workerman and swoole
https://www.kancloud.cn/manua.


agrees with the view of the first floor. They are all implemented on the basis of socket. At present, php has two mature frameworks, workerman and swoole

.
Menu