tp6怎么在任意控制器主动给已经链接的用户主动发送消息?比较菜,半天没搞定。。。
use GatewayClient\Gateway;
Gateway::$registerAddress = config('tcp_gateway');
Gateway::sendToClient($client_id,$order);
非常感谢!
https://www.workerman.net/doc/gateway-worker/push-in-other-project.html
https://www.workerman.net/plugin/2
谢谢
use GatewayClient\Gateway;
Gateway::$registerAddress = config('tcp_gateway');
Gateway::sendToClient($client_id,$order);
非常感谢!
https://www.workerman.net/doc/gateway-worker/push-in-other-project.html
https://www.workerman.net/plugin/2
谢谢