From 2fa7d26f526b257e897e053550252ca2a0576152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=A3=E8=A8=80=E5=B0=B1=E6=98=AFSiam?= <59419979@qq.com> Date: Wed, 10 Apr 2024 12:06:16 +0800 Subject: [PATCH] Added logger for websocket. (#6665) --- src/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.php b/src/Server.php index fa4bee1..d34ab2b 100644 --- a/src/Server.php +++ b/src/Server.php @@ -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);