modify plugin name

This commit is contained in:
2022-02-14 13:34:54 +08:00
parent a70c66cc99
commit f42614ea5d
+7 -2
View File
@@ -19,7 +19,6 @@ class Sender implements WebSocketInterface
private AliasServer|Server|null $server = null;
/**
* @param AliasServer|Server $server
*/
@@ -52,7 +51,13 @@ class Sender implements WebSocketInterface
*/
public function connection_info($fd, $reactor_id = null): ?array
{
return $this->server->getClientInfo($fd, $reactor_id);
if ($this->server instanceof Server) {
return $this->server->getClientInfo($fd, $reactor_id);
}
if ($this->server->exist($fd)) {
return ['websocket_status' => 1];
}
return null;
}