- WebSocket::send() sends message in TEXT mode by default

- WebSocketMessage sets a new binary field, which tells whether the received incoming message is binary or text
This commit is contained in:
Benjamin Sergeant committed 2019-06-09 11:56:47 -07:00
1 parent 0d147cbd94
commit 3e15840b14
11 files changed
+29 -15

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ namespace ix
std::cerr << "Received "
<< msg->wireSize << " bytes"
<< std::endl;
webSocket->send(msg->str);
webSocket->send(msg->str, msg->binary);
}
}
);