diff --git a/src/App.h b/src/App.h index 35a397c..3fa5020 100644 --- a/src/App.h +++ b/src/App.h @@ -82,6 +82,10 @@ public: httpContext = uWS::HttpContext::create(uWS::Loop::defaultLoop(), options); } + bool constructorFailed() { + return !httpContext; + } + struct WebSocketBehavior { CompressOptions compression = DISABLED; int maxPayloadLength = 16 * 1024;