WebSocket::send takes a third arg, binary which default to true (can be text too)
This commit is contained in:
@ -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