modify plugin name
This commit is contained in:
+1
-1
@@ -60,6 +60,7 @@ class CoroutineClient extends ClientAbstracts
|
|||||||
private function coroutine($url, array|string $data = []): void
|
private function coroutine($url, array|string $data = []): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
var_dump($url, $this->getPort());
|
||||||
$this->generate_client($data, ...$url);
|
$this->generate_client($data, ...$url);
|
||||||
if ($this->client->statusCode < 0) {
|
if ($this->client->statusCode < 0) {
|
||||||
throw new Exception($this->client->errMsg);
|
throw new Exception($this->client->errMsg);
|
||||||
@@ -88,7 +89,6 @@ class CoroutineClient extends ClientAbstracts
|
|||||||
} else {
|
} else {
|
||||||
$this->client = new SwowClient($host, $this->getPort(), false);
|
$this->client = new SwowClient($host, $this->getPort(), false);
|
||||||
}
|
}
|
||||||
var_dump($host, $this->getPort());
|
|
||||||
$this->client->set($this->settings());
|
$this->client->set($this->settings());
|
||||||
if (!empty($this->getAgent())) {
|
if (!empty($this->getAgent())) {
|
||||||
$this->withAddedHeader('User-Agent', $this->getAgent());
|
$this->withAddedHeader('User-Agent', $this->getAgent());
|
||||||
|
|||||||
Reference in New Issue
Block a user