Skip to content

Commit

Permalink
fix ws server socket sendMultiple bug
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed May 20, 2023
1 parent 86b7671 commit d62781d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OneBot/Driver/Workerman/Socket/WSServerSocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function sendMultiple($data, ?callable $filter = null): array
}
foreach ($this->connections as $fd => $connection) {
if ($connection->getStatus() === TcpConnection::STATUS_ESTABLISHED && ($filter === null || $filter($fd, $this))) {
$result[$fd] = $connection->send($data->getData());
$result[$fd] = $connection->send($data);
}
}
return $result;
Expand Down

0 comments on commit d62781d

Please sign in to comment.