Skip to content

Commit

Permalink
Fix README example
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Oct 8, 2023
1 parent 8a57456 commit ec8a6f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ $clientHandler = new class implements WebsocketClientHandler {
}
};

$websocket = new Websocket($logger, $handshakeHandler, $clientHandler);
$websocket = new Websocket($server, $logger, $handshakeHandler, $clientHandler);

$router = new Router($server, new NullLogger(), $errorHandler);
$router->addRoute('GET', '/broadcast', $websocket);
Expand Down

0 comments on commit ec8a6f5

Please sign in to comment.