diff --git a/index.js b/index.js index e8f582b..949034c 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ function Client (options) { if (!options.url) throw new Error('Missing url parameter') - self.options = options + self.options = options || {} self.url = options.url // A stack of registered listeners