This commit is contained in:
2024-07-23 17:01:58 +08:00
parent f3792a8f7b
commit 1179f37d8a

View File

@@ -42,6 +42,16 @@ class Wsspush extends BaseWssApi
}
/**
* desc向所有客户端发消息
* api/wsspush/pushToAll
* authorwh
* @throws \Exception
*/
function pushToAll(){
$json = Tools::wss_json_ok('Reportty/createReport','ok',['flow_code'=>'create_report_end']);
Gateway::sendToAll($json);
}
public function hello($name = 'ThinkPHP5')
{
return 'hello,' . $name;