Implement idleTimeout

This commit is contained in:
Alex Hultman
2019-01-22 10:15:27 +01:00
parent 85889153b9
commit 0934965fa5
5 changed files with 34 additions and 24 deletions
+3
View File
@@ -27,6 +27,8 @@ namespace uWS {
template <bool, bool> struct WebSocket;
/* todo: this looks identical to WebSocketBehavior, why not just std::move that entire thing in? */
template <bool SSL>
struct WebSocketContextData {
/* The callbacks for this context */
@@ -36,6 +38,7 @@ struct WebSocketContextData {
/* Settings for this context */
size_t maxPayloadLength = 0;
int idleTimeout = 0;
};
}