Skip to content

Commit 6df72ec

Browse files
committed
fix workerman ws server socket cannot send string bug
1 parent 24fbd50 commit 6df72ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function send($data, $fd): bool
3232
if ($data instanceof FrameInterface) {
3333
$data = $data->getData();
3434
}
35-
return $this->connections[$fd]->send($data->getData());
35+
return $this->connections[$fd]->send($data);
3636
}
3737

3838
public function sendMultiple($data, ?callable $filter = null): array

src/OneBot/global_defines.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use ZM\Logger\ConsoleLogger;
1414

1515
const ONEBOT_VERSION = '12';
16-
const ONEBOT_LIBOB_VERSION = '0.6.0';
16+
const ONEBOT_LIBOB_VERSION = '0.6.1';
1717

1818
const ONEBOT_JSON = 1;
1919
const ONEBOT_MSGPACK = 2;

0 commit comments

Comments
 (0)