diff --git a/app/event/AdminGatewayEvents.php b/app/event/AdminGatewayEvents.php index a5d8f3d..a22d86d 100644 --- a/app/event/AdminGatewayEvents.php +++ b/app/event/AdminGatewayEvents.php @@ -17,7 +17,7 @@ use \GatewayWorker\Lib\Gateway; class AdminGatewayEvents { - public static function onMessage(int $client_id, string $message):void + public static function onMessage(string $client_id, string $message):void { var_dump($message); // 客户端传递的是json数据 @@ -108,7 +108,7 @@ class AdminGatewayEvents } } - public static function onClose(int $client_id) + public static function onClose(string $client_id) { var_dump(['client_id' => $client_id, 'r'=>'CLOSET']); // // 从房间的客户端列表中删除