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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7abf9d-7b39.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7abf9d-7b39.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?