Skip to content

Commit d62781d

Browse files
committed
fix ws server socket sendMultiple bug
1 parent 86b7671 commit d62781d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OneBot/Driver/Workerman/Socket/WSServerSocket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function sendMultiple($data, ?callable $filter = null): array
4343
}
4444
foreach ($this->connections as $fd => $connection) {
4545
if ($connection->getStatus() === TcpConnection::STATUS_ESTABLISHED && ($filter === null || $filter($fd, $this))) {
46-
$result[$fd] = $connection->send($data->getData());
46+
$result[$fd] = $connection->send($data);
4747
}
4848
}
4949
return $result;

0 commit comments

Comments
 (0)