Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 15, 2023
1 parent 550babb commit 6ab269f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Conn.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function hasBuffer()

public function send($data)
{
dump($this->connection->write($data));
$this->connection->write($data);

return $this;
}
Expand Down
4 changes: 2 additions & 2 deletions src/HttpServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6ab269f

Please sign in to comment.