Skip to content

Commit

Permalink
fix workerman ws server socket cannot send string bug
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Mar 5, 2023
1 parent 24fbd50 commit 6df72ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -32,7 +32,7 @@ public function send($data, $fd): bool
if ($data instanceof FrameInterface) {
$data = $data->getData();
}
return $this->connections[$fd]->send($data->getData());
return $this->connections[$fd]->send($data);
}

public function sendMultiple($data, ?callable $filter = null): array
Expand Down
2 changes: 1 addition & 1 deletion src/OneBot/global_defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use ZM\Logger\ConsoleLogger;

const ONEBOT_VERSION = '12';
const ONEBOT_LIBOB_VERSION = '0.6.0';
const ONEBOT_LIBOB_VERSION = '0.6.1';

const ONEBOT_JSON = 1;
const ONEBOT_MSGPACK = 2;
Expand Down

0 comments on commit 6df72ec

Please sign in to comment.