- 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:
@ -62,6 +62,7 @@ namespace ix
|
||||
if (client != webSocket)
|
||||
{
|
||||
client->send(msg->str,
|
||||
msg->binary,
|
||||
[](int current, int total) -> bool
|
||||
{
|
||||
std::cerr << "Step " << current
|
||||
|
@ -59,7 +59,7 @@ namespace ix
|
||||
std::cerr << "Received "
|
||||
<< msg->wireSize << " bytes"
|
||||
<< std::endl;
|
||||
webSocket->send(msg->str);
|
||||
webSocket->send(msg->str, msg->binary);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
@ -62,6 +62,7 @@ namespace ix
|
||||
if (client != webSocket)
|
||||
{
|
||||
client->send(msg->str,
|
||||
msg->binary,
|
||||
[](int current, int total) -> bool
|
||||
{
|
||||
std::cerr << "ws_transfer: Step " << current
|
||||
|
Reference in New Issue
Block a user