From 75195f7afa429e0ad1338ed59bc662027c692598 Mon Sep 17 00:00:00 2001 From: akannalathws3 Date: Tue, 3 Oct 2017 11:30:37 -0700 Subject: [PATCH] Allow error handling --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index fad7d95..cbd9db5 100644 --- a/index.js +++ b/index.js @@ -74,6 +74,7 @@ var new_client = function(sdk_key, config) { } config.logger.error("[LaunchDarkly]", error); + client.emit('connectError') // Allow error handling } else if (!init_complete) { init_complete = true;