From bdbdfade5c1da7d0bff8fe7b1ced62f3f43273e8 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 9 May 2025 12:54:51 +0000 Subject: [PATCH] fix: prevent timeout while listening --- src/WebSocket/Client.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/WebSocket/Client.php b/src/WebSocket/Client.php index 9a2e455..0d6d215 100644 --- a/src/WebSocket/Client.php +++ b/src/WebSocket/Client.php @@ -88,6 +88,9 @@ public function listen(): void $this->handleClose(); break; } + if ($this->client->errCode === 110) { + continue; + } throw new \RuntimeException( "Failed to receive data: {$this->client->errCode} - {$this->client->errMsg}" );