project builds / gross hack to disable compression code path / ws connect -x works but test fails

This commit is contained in:
Benjamin Sergeant
2020-07-07 19:25:18 -07:00
parent fbe7b0b020
commit 7a4a84d6e0
7 changed files with 74 additions and 17 deletions

View File

@ -100,6 +100,7 @@ namespace
}
_webSocket.setUrl(url);
_webSocket.disablePerMessageDeflate();
std::stringstream ss;
log(std::string("Connecting to url: ") + url);
@ -188,7 +189,9 @@ namespace
void WebSocketChat::sendMessage(const std::string& text)
{
_webSocket.sendBinary(encodeMessage(text));
auto msg = encodeMessage(text);
std::vector<uint8_t> data(text.begin(), text.end());
_webSocket.sendBinary(data);
}
bool startServer(ix::WebSocketServer& server)