Expose constructorFailed
This commit is contained in:
@@ -82,6 +82,10 @@ public:
|
|||||||
httpContext = uWS::HttpContext<SSL>::create(uWS::Loop::defaultLoop(), options);
|
httpContext = uWS::HttpContext<SSL>::create(uWS::Loop::defaultLoop(), options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool constructorFailed() {
|
||||||
|
return !httpContext;
|
||||||
|
}
|
||||||
|
|
||||||
struct WebSocketBehavior {
|
struct WebSocketBehavior {
|
||||||
CompressOptions compression = DISABLED;
|
CompressOptions compression = DISABLED;
|
||||||
int maxPayloadLength = 16 * 1024;
|
int maxPayloadLength = 16 * 1024;
|
||||||
|
|||||||
Reference in New Issue
Block a user