优化消息推送事件

Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
vilson 2019-01-25 11:41:33 +08:00
parent 18f50d52e6
commit 401d51a144

View File

@ -64,7 +64,7 @@ class Events
public static function onClose($client_id)
{
// 向所有人发送
$data = ['action' => 'onClose', 'data' => ['client_id' => $client_id, 'online' => Gateway::getAllClientCountindex.html()]];
$data = ['action' => 'onClose', 'data' => ['client_id' => $client_id, 'online' => Gateway::getAllClientCount()]];
GateWay::sendToAll(json_encode($data));
}
}