(ws send + receive) handle all message types (ping + pong + fragment) / investigate #140
This commit is contained in:
parent
18091f49ab
commit
d62a102aba
@ -1,6 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
All changes to this project will be documented in this file.
|
All changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [7.8.9] - 2020-01-04
|
||||||
|
|
||||||
|
(ws send + receive) handle all message types (ping + pong + fragment) / investigate #140
|
||||||
|
|
||||||
## [7.8.8] - 2019-12-28
|
## [7.8.8] - 2019-12-28
|
||||||
|
|
||||||
(mbedtls) fix related to private key file parsing and initialization
|
(mbedtls) fix related to private key file parsing and initialization
|
||||||
|
@ -6,4 +6,4 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define IX_WEBSOCKET_VERSION "7.8.8"
|
#define IX_WEBSOCKET_VERSION "7.8.9"
|
||||||
|
@ -234,6 +234,14 @@ namespace ix
|
|||||||
ss << "HTTP Status: " << msg->errorInfo.http_status << std::endl;
|
ss << "HTTP Status: " << msg->errorInfo.http_status << std::endl;
|
||||||
log(ss.str());
|
log(ss.str());
|
||||||
}
|
}
|
||||||
|
else if (msg->type == ix::WebSocketMessageType::Ping)
|
||||||
|
{
|
||||||
|
log("ws_receive: received ping");
|
||||||
|
}
|
||||||
|
else if (msg->type == ix::WebSocketMessageType::Pong)
|
||||||
|
{
|
||||||
|
log("ws_receive: received pong");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ss << "ws_receive: Invalid ix::WebSocketMessageType";
|
ss << "ws_receive: Invalid ix::WebSocketMessageType";
|
||||||
|
@ -166,6 +166,18 @@ namespace ix
|
|||||||
ss << "HTTP Status: " << msg->errorInfo.http_status << std::endl;
|
ss << "HTTP Status: " << msg->errorInfo.http_status << std::endl;
|
||||||
log(ss.str());
|
log(ss.str());
|
||||||
}
|
}
|
||||||
|
else if (msg->type == ix::WebSocketMessageType::Ping)
|
||||||
|
{
|
||||||
|
spdlog::info("ws_send: received ping");
|
||||||
|
}
|
||||||
|
else if (msg->type == ix::WebSocketMessageType::Pong)
|
||||||
|
{
|
||||||
|
spdlog::info("ws_send: received pong");
|
||||||
|
}
|
||||||
|
else if (msg->type == ix::WebSocketMessageType::Fragment)
|
||||||
|
{
|
||||||
|
spdlog::info("ws_send: received fragment");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ss << "ws_send: Invalid ix::WebSocketMessageType";
|
ss << "ws_send: Invalid ix::WebSocketMessageType";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user