改名
This commit is contained in:
@@ -39,7 +39,7 @@ class ServerManager
|
||||
public int $mode = SWOOLE_TCP;
|
||||
|
||||
|
||||
private mixed $server = null;
|
||||
private Server|null $server = null;
|
||||
|
||||
|
||||
/**
|
||||
@@ -161,6 +161,15 @@ class ServerManager
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getSetting(): array
|
||||
{
|
||||
return $this->server->setting;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param array $ports
|
||||
* @return array
|
||||
@@ -431,6 +440,17 @@ class ServerManager
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param mixed $message
|
||||
* @param int $workerId
|
||||
* @return mixed
|
||||
*/
|
||||
public function sendMessage(mixed $message, int $workerId): mixed
|
||||
{
|
||||
return $this->server?->sendMessage($message, $workerId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param array $events
|
||||
* @throws ReflectionException
|
||||
|
||||
Reference in New Issue
Block a user