Hook up maxPayloadLength, not for Zlib

This commit is contained in:
Alex Hultman
2018-12-29 13:32:49 +01:00
parent f5583b4a8a
commit 50de2cea89
4 changed files with 13 additions and 8 deletions
+3
View File
@@ -32,6 +32,9 @@ struct WebSocketContextData {
std::function<void(WebSocket<SSL, true> *, std::string_view, uWS::OpCode)> messageHandler = nullptr;
std::function<void(uWS::WebSocket<SSL, true> *)> drainHandler = nullptr;
std::function<void(uWS::WebSocket<SSL, true> *, int, std::string_view)> closeHandler = nullptr;
/* Settings for this context */
size_t maxPayloadLength = 0;
};
}