diff --git a/src/Components/workerman/src/Server/Util/LocalServerUtil.php b/src/Components/workerman/src/Server/Util/LocalServerUtil.php index 37829bb525..0d0ebf0e12 100644 --- a/src/Components/workerman/src/Server/Util/LocalServerUtil.php +++ b/src/Components/workerman/src/Server/Util/LocalServerUtil.php @@ -90,7 +90,7 @@ public function sendRaw(string $data, $clientId = null, ?string $serverName = nu { /** @var TcpConnection|null $connection */ $connection = $worker->connections[$tmpClientId] ?? null; - if (null !== $connection && $connection->send($data, !isset($connection->websocketCurrentFrameLength))) + if (null !== $connection && $connection->send($data, !isset($connection->websocketCurrentFrameLength) && !isset($connection->context->websocketCurrentFrameLength))) { ++$success; }