ws connect display more accurate messages for incoming messages

This commit is contained in:
Benjamin Sergeant 2019-05-07 12:12:27 -07:00
parent fa7f0fadde
commit 98e2fbca6a

View File

@ -106,6 +106,18 @@ namespace ix
ss << "HTTP Status: " << error.http_status << std::endl;
log(ss.str());
}
else if (messageType == ix::WebSocket_MessageType_Fragment)
{
std::cerr << "Received message fragment" << std::endl;
}
else if (messageType == ix::WebSocket_MessageType_Ping)
{
std::cerr << "Received ping" << std::endl;
}
else if (messageType == ix::WebSocket_MessageType_Pong)
{
std::cerr << "Received pong" << std::endl;
}
else
{
ss << "Invalid ix::WebSocketMessageType";