From 6ab269f916bd221c38232830b4b6e51ef3798358 Mon Sep 17 00:00:00 2001 From: Joe Dixon Date: Wed, 15 Nov 2023 14:00:04 +0000 Subject: [PATCH] wip --- src/Conn.php | 2 +- src/HttpServer.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Conn.php b/src/Conn.php index fc4f6ba4..7c1d962a 100644 --- a/src/Conn.php +++ b/src/Conn.php @@ -40,7 +40,7 @@ public function hasBuffer() public function send($data) { - dump($this->connection->write($data)); + $this->connection->write($data); return $this; } diff --git a/src/HttpServer.php b/src/HttpServer.php index 63a21b47..6ccf7ee2 100644 --- a/src/HttpServer.php +++ b/src/HttpServer.php @@ -57,9 +57,9 @@ protected function handleRequest(string $data, Conn $connection) $negotiator = new ServerNegotiator(new RequestVerifier); $response = $negotiator->handshake($request); - $connection = new WsConnection($connection); + $connection->write(Message::toString($response)); - $connection->send(Message::toString($response)); + $connection = new WsConnection($connection); $server = app(Server::class); $reverbConnection = $this->connection($request, $connection);