Laravel使用hhxsv5/laravel-s(Swoole适配器)实现广播
1.hhxsv5/laravel-s适配器github地址:
https://github.com/hhxsv5/laravel-s
2.主要代码
/**@var \Swoole\Http\Server|\Swoole\WebSocket\Server $swoole */
$swoole = app('swoole');
// $swoole->ports:遍历所有Port对象,https://wiki.swoole.com/#/server.
原创
2021-02-25 17:36:21 ·
599 阅读 ·
0 评论