Reserve maxLifetime for the future

This commit is contained in:
Alex Hultman
2021-02-19 07:41:40 +01:00
parent 26b7f8c7a6
commit 23864c371f
+2
View File
@@ -148,6 +148,8 @@ public:
bool resetIdleTimeoutOnSend = false;
/* A good default, esp. for newcomers */
bool sendPingsAutomatically = true;
/* Maximum socket lifetime in seconds before forced closure (defaults to disabled) */
unsigned short maxLifetime = 0;
MoveOnlyFunction<void(HttpResponse<SSL> *, HttpRequest *, struct us_socket_context_t *)> upgrade = nullptr;
MoveOnlyFunction<void(uWS::WebSocket<SSL, true> *)> open = nullptr;
MoveOnlyFunction<void(uWS::WebSocket<SSL, true> *, std::string_view, uWS::OpCode)> message = nullptr;