This commit is contained in:
2026-02-26 14:44:26 +08:00
parent fc6c6c0b03
commit 6362c7f5ea
2 changed files with 9 additions and 16 deletions
+3 -6
View File
@@ -24,7 +24,6 @@ class Test extends Websocket
{
// TODO: Implement onConnected() method.
$this->stateChange($request->getAuthority()->getUniqueId(), 1);
return true;
}
@@ -47,12 +46,10 @@ class Test extends Websocket
$client->close();
if ($client->getStatusCode() != 200) {
return false;
} else {
$request->withAuthority(json_decode($client->body));
return true;
}
$data = json_decode($client->body, true);
$request->withAuthority($data);
return true;
}
/**