web-msg-sender里怎么使用Timer

老哥,官方文档上说Timer怎么放在Oxx方法里,但是我现在只会使用web-msg-sender里的这个发送方法? public function push() { $data = [ 'type' => 'publish', 'content' => json_encode($this->content), 'to' => $this->to_user ]; $ch = curl_in...

maltose 发表与 2019-11-18 1868 浏览 0 回答
如何在php后端及时推送消息给客户端

环境:Windows php7.1 thinkphp5.1 apache2.4 新数据进入后台存入redis 保存5分钟 怎么去实时监听redis里面的数据,将5分钟内的数据推送到前台? 我现在已经使用web-msg-sender实现手动推送,怎么实现监听,不需要我去手动触发...

maltose 发表与 2019-11-16 2438 浏览 2 回答

maltose

76
积分
0
获赞数
0
粉丝数
2019-10-29 加入
🔝