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());