|
|
@@ -3,6 +3,7 @@
|
|
|
// websocket相关
|
|
|
namespace ghs\controllers;
|
|
|
|
|
|
+use bizGhs\ws\services\WsService;
|
|
|
use Yii;
|
|
|
use GatewayClient\Gateway;
|
|
|
class WsController extends BaseController
|
|
|
@@ -24,4 +25,10 @@ class WsController extends BaseController
|
|
|
$clientId = isset($post['clientId']) ? $post['clientId'] : '';
|
|
|
Gateway::closeClient($clientId);
|
|
|
}
|
|
|
+
|
|
|
+ //模拟推送ws (仅供测试联调用)
|
|
|
+ public function actionSend()
|
|
|
+ {
|
|
|
+ WsService::arrivalNotice($this->adminId,1.2);
|
|
|
+ }
|
|
|
}
|