add boolean and add missing protocol error close constant (#41)

This commit is contained in:
Kumamon38 authored and Benjamin Sergeant committed 2019-04-23 04:31:55 -07:00
1 parent c85d5da111
commit 8ff1339b80
4 files changed
+27 -9

No files matched your search

+2 -2
View File
@@ -45,11 +45,11 @@ namespace ix
_pingTimeoutSecs(kDefaultPingTimeoutSecs)
{
_ws.setOnCloseCallback(
[this](uint16_t code, const std::string& reason, size_t wireSize)
[this](uint16_t code, const std::string& reason, size_t wireSize, bool remote)
{
_onMessageCallback(WebSocket_MessageType_Close, "", wireSize,
WebSocketErrorInfo(), WebSocketOpenInfo(),
WebSocketCloseInfo(code, reason));
WebSocketCloseInfo(code, reason, remote));
}
);
}