waitRequest()) { try { $resp = new \Nyholm\Psr7\Response(); if ($req->getAttribute('ws:joinServer')) { $psr7->respond($resp->withStatus(200)); } else { $psr7->respond($resp->withStatus(401)); } } catch (\Throwable $e) { $psr7->getWorker()->error((string)$e); } }