workerman 推送指定客户端浏览器消息
首先 composer require workerman/workerman
pushMessage.php
<?php
use Workerman\Lib\Timer;
use Workerman\Worker;
require_once './vendor\workerman\workerman\Autoloader.php';
// 心跳间隔55秒
define('HEARTBEAT_TIME', 55);
// 初始化一个worker容器,监听1234端口
$worker = n.
转载
2021-10-09 10:04:43 ·
522 阅读 ·
0 评论