diff --git a/src/Services/Server.php b/src/Services/Server.php index 3ea71d8..320f154 100644 --- a/src/Services/Server.php +++ b/src/Services/Server.php @@ -115,18 +115,6 @@ public function handleWsHandshake(Request $request, Response $response): bool return false; } - // check for authorization - try { - $authToken = $request->header['authorization'] ?? null; - if ($authToken !== 'YOUR_SECRET_TOKEN') { - throw new Exception('Unauthorized'); - } - } catch (Exception $e) { - $response->status(401); - $response->end($e->getMessage()); - return false; - } - foreach($headers as $headerKey => $val) { $response->header($headerKey, $val); }