token system now fullly works
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user