WebSocket::send takes a third arg, binary which default to true (can be text too)
This commit is contained in:
1 parent
be93f7480a
commit
0d147cbd94
3 files changed
+8
-3
No files matched your search
@@ -66,7 +66,8 @@ namespace ix
|
||||
|
||||
// send is in binary mode by default
|
||||
WebSocketSendInfo send(const std::string& data,
|
||||
const OnProgressCallback& onProgressCallback = nullptr);
|
||||
const OnProgressCallback& onProgressCallback = nullptr,
|
||||
bool binary = true);
|
||||
WebSocketSendInfo sendBinary(const std::string& text,
|
||||
const OnProgressCallback& onProgressCallback = nullptr);
|
||||
WebSocketSendInfo sendText(const std::string& text,
|
||||
|
||||
Reference in new issue
Block a user