mirror of
https://github.com/MetinSeylan/Vue-Socket.io.git
synced 2025-04-16 15:21:28 +02:00
change: move useConnectionNamespace inside options object
This commit is contained in:
parent
a715ee1ae7
commit
2f68c7c9b0
1 changed files with 2 additions and 2 deletions
|
@ -13,11 +13,11 @@ export default class VueSocketIO {
|
||||||
* @param debug
|
* @param debug
|
||||||
* @param options
|
* @param options
|
||||||
*/
|
*/
|
||||||
constructor({connection, vuex, debug, options, useConnectionNamespace}){
|
constructor({connection, vuex, debug, options}){
|
||||||
|
|
||||||
Logger.debug = debug;
|
Logger.debug = debug;
|
||||||
this.io = this.connect(connection, options);
|
this.io = this.connect(connection, options);
|
||||||
this.useConnectionNamespace = useConnectionNamespace;
|
this.useConnectionNamespace = (options && options.useConnectionNamespace) || false;
|
||||||
this.emitter = new Emitter(vuex);
|
this.emitter = new Emitter(vuex);
|
||||||
this.listener = new Listener(this.io, this.emitter);
|
this.listener = new Listener(this.io, this.emitter);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue