This commit is contained in:
2021-04-12 15:37:13 +08:00
parent 08e1caedfd
commit 3bdba2c993
2 changed files with 9 additions and 36 deletions
+1 -1
View File
@@ -360,7 +360,7 @@ class Snowflake
public static function push(int $fd, $data): mixed
{
$server = static::getWebSocket();
if (empty($server)) {
if (empty($server) || !$server->isEstablished($fd)) {
return false;
}
if (!is_string($data)) {