token system now fullly works

This commit is contained in:
GitProtogen
2026-03-06 17:05:54 +01:00
parent 14359b9de1
commit 51a94fea19
2 changed files with 112 additions and 30 deletions
+2 -2
View File
@@ -98,6 +98,7 @@ class WebSocketServer implements MessageComponentInterface
public function onError(ConnectionInterface $conn, \Exception $e): void
{
echo "Error: {$e->getMessage()}\n";
$this->deleteGivenId($conn->resourceId);
$this->onClose($conn);
}
}
@@ -109,8 +110,7 @@ $routes->add("ws", new Route("/ws", ["_controller" => new WsServer(n
$server = IoServer::factory(
new HttpServer(new Router(new UrlMatcher($routes, new RequestContext()))),
8080,
"0.0.0.0"
8080
);
Handler::getInstance()->init();