From 2f68c7c9b069bd9e5f2e1f8f47fae6a53c431b78 Mon Sep 17 00:00:00 2001 From: Leonardo Dominguez Date: Tue, 16 Apr 2019 11:05:35 -0400 Subject: [PATCH] change: move useConnectionNamespace inside options object --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 6ba1c61..cb1824c 100644 --- a/src/index.js +++ b/src/index.js @@ -13,11 +13,11 @@ export default class VueSocketIO { * @param debug * @param options */ - constructor({connection, vuex, debug, options, useConnectionNamespace}){ + constructor({connection, vuex, debug, options}){ Logger.debug = debug; this.io = this.connect(connection, options); - this.useConnectionNamespace = useConnectionNamespace; + this.useConnectionNamespace = (options && options.useConnectionNamespace) || false; this.emitter = new Emitter(vuex); this.listener = new Listener(this.io, this.emitter);