modify plugin name
This commit is contained in:
@@ -19,7 +19,6 @@ class Sender implements WebSocketInterface
|
|||||||
private AliasServer|Server|null $server = null;
|
private AliasServer|Server|null $server = null;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param AliasServer|Server $server
|
* @param AliasServer|Server $server
|
||||||
*/
|
*/
|
||||||
@@ -52,8 +51,14 @@ class Sender implements WebSocketInterface
|
|||||||
*/
|
*/
|
||||||
public function connection_info($fd, $reactor_id = null): ?array
|
public function connection_info($fd, $reactor_id = null): ?array
|
||||||
{
|
{
|
||||||
|
if ($this->server instanceof Server) {
|
||||||
return $this->server->getClientInfo($fd, $reactor_id);
|
return $this->server->getClientInfo($fd, $reactor_id);
|
||||||
}
|
}
|
||||||
|
if ($this->server->exist($fd)) {
|
||||||
|
return ['websocket_status' => 1];
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user