From 485b951e5279a7e0f829aef38f1ee7b5cfd899e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 14 Feb 2022 14:40:38 +0800 Subject: [PATCH] modify plugin name --- Coroutine/Http.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Coroutine/Http.php b/Coroutine/Http.php index 5174b07..dcf25f7 100644 --- a/Coroutine/Http.php +++ b/Coroutine/Http.php @@ -162,6 +162,9 @@ class Http extends Component } while (($data = $response->recv()) instanceof Frame) { try { + if ($data->opcode == WEBSOCKET_OPCODE_PING || $data->opcode == WEBSOCKET_OPCODE_PONG) { + continue; + } call_user_func($message, $data); } catch (\Throwable $throwable) { $this->logger()->error($throwable->getMessage());