Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-07 17:59:37 +08:00
parent 842220e4de
commit 0afa8fc400
2 changed files with 4 additions and 1 deletions
-1
View File
@@ -8,7 +8,6 @@ class Sender
public function push($fd, $data)
{
}
+4
View File
@@ -63,6 +63,10 @@ class Server extends AbstractServer implements OnHandshakeInterface, OnMessageIn
*/
public function onClose(\Swoole\Server $server, int $fd): void
{
$clientInfo = $server->getClientInfo($fd);
if (!isset($clientInfo['websocket_status'])) {
return;
}
if ($this->callback instanceof OnCloseInterface) {
$this->callback->onClose($server, $fd);
}