Skip to content

Commit

Permalink
Added logger for websocket. (#6665)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanyanwow authored Apr 10, 2024
1 parent b4b0903 commit 2fa7d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function onHandShake($request, $response): void
FdCollector::set($fd, $class);
$server = $this->getServer();
if (Constant::isCoroutineServer($server)) {
$upgrade = new WebSocket($response, $request);
$upgrade = new WebSocket($response, $request, $this->logger);

$this->getSender()->setResponse($fd, $response);
$this->deferOnOpen($request, $class, $response, $fd);
Expand Down

0 comments on commit 2fa7d26

Please sign in to comment.