Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-08 18:49:08 +08:00
parent 7165a67294
commit 97cd1a0ebf
33 changed files with 169 additions and 172 deletions
+11 -1
View File
@@ -44,6 +44,17 @@ class Sender implements WebSocketInterface
}
/**
* @param $fd
* @param $reactor_id
* @return array|null
*/
public function connection_info($fd, $reactor_id = null): ?array
{
return $this->server->getClientInfo($fd, $reactor_id);
}
/**
* @param int $fd
* @param int $code
@@ -53,7 +64,6 @@ class Sender implements WebSocketInterface
public function disconnect(int $fd, int $code = SWOOLE_WEBSOCKET_CLOSE_NORMAL, string $reason = ''): bool
{
if ($this->isEstablished($fd)) {
// TODO: Implement disconnect() method.
return $this->server->disconnect($fd, $code, $reason);
}
return false;