优化消息推送事件
Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
parent
18f50d52e6
commit
401d51a144
@ -64,7 +64,7 @@ class Events
|
|||||||
public static function onClose($client_id)
|
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));
|
GateWay::sendToAll(json_encode($data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user