From b6173d68b4a707f248a232c4b67dc5d86da60f61 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sun, 10 Feb 2019 12:37:56 +0100 Subject: [PATCH] Expose constructorFailed --- src/App.h | 4 ++++ 1 file changed, 4 insertions(+) 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;