minor improvements (#66)

* minor improvements

* fix build

* improve tests code
This commit is contained in:
Dimon4eg
2019-05-11 22:20:58 +03:00
committed by Benjamin Sergeant
parent 0caeb81327
commit a64b7b0c4a
8 changed files with 21 additions and 30 deletions

View File

@ -148,6 +148,8 @@ namespace ix
if (_thread.joinable())
{
// wait until working thread will exit
// it will exit after close operation is finished
_stop = true;
_thread.join();
_stop = false;
@ -361,10 +363,10 @@ namespace ix
}
}
WebSocketSendInfo WebSocket::send(const std::string& text,
WebSocketSendInfo WebSocket::send(const std::string& data,
const OnProgressCallback& onProgressCallback)
{
return sendMessage(text, SendMessageKind::Binary, onProgressCallback);
return sendMessage(data, SendMessageKind::Binary, onProgressCallback);
}
WebSocketSendInfo WebSocket::sendText(const std::string& text,