diff --git a/dist/vue-wamp.cjs.js b/dist/vue-wamp.cjs.js index e7c5979..9a84e4e 100644 --- a/dist/vue-wamp.cjs.js +++ b/dist/vue-wamp.cjs.js @@ -1,5 +1,5 @@ /*! - * vue-wamp v2.0.3 + * vue-wamp v2.0.5 * https://github.com/lajosbencz/vue-wamp#readme * Released under the MIT License. */ @@ -350,11 +350,17 @@ class Connection extends autobahn.Connection { } open() { + if(this.isConnected || this.isOpen) { + return; + } this.log.info('Connection open', {Connection: this}); super.open(); } close(reason, message) { + if(!this.isConnected && !this.isOpen && !this.isRetrying) { + return; + } this.log.info('Connection close', {Connection: this, reason, message}); super.close(reason, message); } diff --git a/dist/vue-wamp.esm.js b/dist/vue-wamp.esm.js index bdd240d..e53e358 100644 --- a/dist/vue-wamp.esm.js +++ b/dist/vue-wamp.esm.js @@ -1,5 +1,5 @@ /*! - * vue-wamp v2.0.3 + * vue-wamp v2.0.5 * https://github.com/lajosbencz/vue-wamp#readme * Released under the MIT License. */ @@ -346,11 +346,17 @@ class Connection extends autobahn.Connection { } open() { + if(this.isConnected || this.isOpen) { + return; + } this.log.info('Connection open', {Connection: this}); super.open(); } close(reason, message) { + if(!this.isConnected && !this.isOpen && !this.isRetrying) { + return; + } this.log.info('Connection close', {Connection: this, reason, message}); super.close(reason, message); } diff --git a/dist/vue-wamp.js b/dist/vue-wamp.js index bbcef01..b3544aa 100644 --- a/dist/vue-wamp.js +++ b/dist/vue-wamp.js @@ -1,6 +1,6 @@ /*! - * vue-wamp v2.0.3 + * vue-wamp v2.0.5 * https://github.com/lajosbencz/vue-wamp#readme * Released under the MIT License. - */(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b(require("autobahn")):"function"==typeof define&&define.amd?define(["autobahn"],b):(a=a||self,a.VueWamp=b(a.autobahn))})(this,function(a){"use strict";function b(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function c(a,b){for(var c,d=0;d {\r\n this._con.subscribe(topic, handler, options)\r\n .then((subscription) => this._subscriptions.push(subscription))\r\n .catch(console.error)\r\n });\r\n }\r\n\r\n register(procedure, endpoint, options) {\r\n options = options || {};\r\n options.acknowledge = true;\r\n this._reconnectors.push(() => {\r\n this._con.register(procedure, endpoint, options)\r\n .then((registration) => this._registrations.push(registration))\r\n .catch(console.error)\r\n });\r\n }\r\n\r\n unsubscribe(subscription) {\r\n for(let i in this._subscriptions) {\r\n if(!this._subscriptions.hasOwnProperty(i)) {\r\n continue;\r\n }\r\n const s = this._subscriptions[i];\r\n if(s === subscription) {\r\n this._subscriptions = this._subscriptions.splice(i, 1);\r\n }\r\n }\r\n }\r\n\r\n unregister(registration) {\r\n for(let i in this._registrations) {\r\n if(!this._registrations.hasOwnProperty(i)) {\r\n continue;\r\n }\r\n const r = this._registrations[i];\r\n if(r === registration) {\r\n this._registrations = this._registrations.splice(i, 1);\r\n }\r\n }\r\n }\r\n\r\n clear() {\r\n this._reconnectors = [];\r\n }\r\n\r\n reconnected() {\r\n for(let i in this._reconnectors) {\r\n const r = this._reconnectors[i];\r\n r();\r\n }\r\n }\r\n\r\n closed() {\r\n while(this._subscriptions.length > 0) {\r\n const s = this._subscriptions.shift();\r\n this._con.unsubscribe(s).catch(() => {});\r\n }\r\n while(this._registrations.length >0) {\r\n const r = this._registrations.shift();\r\n this._con.unregister(r).catch(() => {});\r\n }\r\n }\r\n\r\n}\r\n\r\nexport default Persist\r\n","\r\nimport Persist from './Persist.js'\r\n\r\nclass ConnectionContext {\r\n\r\n constructor(connection, context, events) {\r\n this._con = connection;\r\n this._ctx = context;\r\n this._persist = new Persist(connection, events);\r\n events.$on('reconnected', () => {\r\n this._persist.reconnected();\r\n });\r\n events.$on('closed', () => {\r\n this.closed();\r\n this._persist.closed();\r\n });\r\n this._subscriptions = [];\r\n this._registrations = [];\r\n }\r\n\r\n get isConnected() {\r\n return this._con.isConnected;\r\n }\r\n\r\n get isOpen() {\r\n return this._con.isOpen;\r\n }\r\n\r\n get isRetrying() {\r\n return this._con.isRetrying;\r\n }\r\n\r\n open() {\r\n return this._con.open();\r\n }\r\n\r\n close(reason, message) {\r\n return this._con.close(reason, message);\r\n }\r\n\r\n call(procedure, args, kwargs, options) {\r\n return this._con.call(procedure, args, kwargs, options)\r\n }\r\n\r\n subscribe(topic, handler, options) {\r\n options = options || {};\r\n options.acknowledge = true;\r\n const d = this._con.defer();\r\n this._con.subscribe(topic, handler, options)\r\n .then(subscription => {\r\n this._subscriptions.push(subscription);\r\n d.resolve(subscription);\r\n }, d.reject)\r\n ;\r\n this._persist.subscribe(topic, handler, options);\r\n return d.promise;\r\n }\r\n\r\n register(procedure, endpoint, options) {\r\n options = options || {};\r\n options.acknowledge = true;\r\n const d = this._con.defer();\r\n this._con.register(procedure, endpoint, options)\r\n .then(registration => {\r\n this._registrations.push(registration);\r\n d.resolve(registration);\r\n }, d.reject)\r\n ;\r\n this._persist.register(procedure, endpoint, options);\r\n return d.promise;\r\n }\r\n\r\n publish(topic, args, kwargs, options) {\r\n return this._con.publish(topic, args, kwargs, options);\r\n }\r\n\r\n unsubscribe(subscription) {\r\n for(let i in this._subscriptions) {\r\n if(!this._subscriptions.hasOwnProperty(i)) {\r\n continue;\r\n }\r\n const s = this._subscriptions[i];\r\n if(s === subscription) {\r\n this._subscriptions = this._subscriptions.splice(i, 1);\r\n }\r\n }\r\n this._persist.unsubscribe(subscription);\r\n return this._con.unsubscribe(subscription);\r\n }\r\n\r\n unregister(registration) {\r\n for(let i in this._registrations) {\r\n if(!this._registrations.hasOwnProperty(i)) {\r\n continue;\r\n }\r\n const r = this._registrations[i];\r\n if(r === registration) {\r\n this._registrations = this._registrations.splice(i, 1);\r\n }\r\n }\r\n this._persist.unregister(registration);\r\n return this._con.unregister(registration);\r\n }\r\n\r\n closed() {\r\n while(this._subscriptions.length > 0) {\r\n const s = this._subscriptions.shift();\r\n this._con.unsubscribe(s).catch(() => {});\r\n }\r\n while(this._registrations.length >0) {\r\n const r = this._registrations.shift();\r\n this._con.unregister(r).catch(() => {});\r\n }\r\n }\r\n\r\n destroy() {\r\n this.closed();\r\n this._persist.closed();\r\n this._persist.clear();\r\n }\r\n\r\n}\r\n\r\nexport default ConnectionContext\r\n","import autobahn from 'autobahn'\r\n\r\nimport ConnectionContext from './ConnetionContext'\r\nimport pkg from \"../package\";\r\n\r\nconst logPrefix = '[vue-wamp]';\r\n\r\nconst dummyConsole = {\r\n log: () => {\r\n },\r\n info: () => {\r\n },\r\n warn: () => {\r\n },\r\n error: () => {\r\n },\r\n};\r\n\r\nconst debugConsole = {\r\n log: (...a) => {\r\n console.log(logPrefix, ...a)\r\n },\r\n info: (...a) => {\r\n console.info(logPrefix, ...a)\r\n },\r\n warn: (...a) => {\r\n console.warn(logPrefix, ...a)\r\n },\r\n error: (...a) => {\r\n console.error(logPrefix, ...a)\r\n },\r\n};\r\n\r\nconst defaultConfig = {\r\n debug: false,\r\n};\r\n\r\nclass Connection extends autobahn.Connection {\r\n\r\n constructor(config, events) {\r\n config = Object.assign({}, defaultConfig, config);\r\n super(config);\r\n\r\n // plugin events\r\n this._vueWampEvents = events;\r\n // plugin config\r\n this._vueWampCfg = config;\r\n // session promise resolve queue\r\n this._vueWampQRes = [];\r\n // session promise reject queue\r\n this._vueWampQRej = [];\r\n\r\n let _lastStatus = {\r\n isConnected: false,\r\n isOpen: false,\r\n isRetrying: false,\r\n };\r\n\r\n const _statusUpdate = (details) => {\r\n const status = {\r\n isConnected: this.isConnected,\r\n isOpen: this.isOpen,\r\n isRetrying: this.isRetrying,\r\n };\r\n const e = {status, lastStatus: _lastStatus, details};\r\n this.log.info('Status emit', e);\r\n events.$emit('status', e);\r\n if(status.isOpen && !_lastStatus.isOpen) {\r\n events.$emit('opened', e);\r\n if(!status.isRetrying && _lastStatus.isRetrying) {\r\n events.$emit('reconnected', e);\r\n }\r\n }\r\n else if(!status.isOpen && _lastStatus.isOpen) {\r\n events.$emit('closed', e);\r\n }\r\n if(status.isRetrying && !_lastStatus.isRetrying) {\r\n events.$emit('retrying', e);\r\n }\r\n _lastStatus = status;\r\n };\r\n\r\n this.onopen = (session, details) => {\r\n this.log.info('Connection opened', {session, details});\r\n _statusUpdate(details);\r\n const l = this._vueWampQRes.length;\r\n while (this._vueWampQRes.length > 0) {\r\n let resolve = this._vueWampQRes.shift();\r\n resolve(session);\r\n }\r\n this.log.info('Sessions resolved:', l);\r\n this._vueWampQRej = [];\r\n if(config.hasOwnProperty('onopen') && typeof config.onopen === \"function\") {\r\n config.onopen(session, details);\r\n }\r\n };\r\n\r\n this.onclose = (reason, details) => {\r\n this.log.info('Connection closed', {reason, details});\r\n let stop = false;\r\n if(!details.will_retry) {\r\n this._autoreconnect_reset();\r\n stop = true;\r\n }\r\n _statusUpdate(details);\r\n const l = this._vueWampQRej.length;\r\n while (this._vueWampQRej.length > 0) {\r\n let reject = this._vueWampQRej.shift();\r\n reject({reason, details});\r\n }\r\n this.log.info('Sessions rejected:', l);\r\n this._vueWampQRes = [];\r\n if(config.hasOwnProperty('onclose') && typeof config.onclose === \"function\") {\r\n config.onclose(session, details);\r\n }\r\n return stop;\r\n };\r\n\r\n this.log.info('Connection create', {Connection: this});\r\n _statusUpdate(null);\r\n }\r\n\r\n get log() {\r\n return this._vueWampCfg.debug ? debugConsole : dummyConsole\r\n }\r\n\r\n // get isClosed() {\r\n // return !(this.isConnected || this.isOpen || this.isRetrying)\r\n // }\r\n\r\n get sessionPromise() {\r\n const d = this.defer();\r\n if (this.isOpen && this.session) {\r\n d.resolve(this.session)\r\n }\r\n else {\r\n this.open();\r\n this._vueWampQRes.push(d.resolve);\r\n this._vueWampQRej.push(d.reject);\r\n }\r\n return d.promise;\r\n }\r\n\r\n withContext(context) {\r\n return new ConnectionContext(this, context, this._vueWampEvents)\r\n }\r\n\r\n open() {\r\n this.log.info('Connection open', {Connection: this});\r\n super.open();\r\n }\r\n\r\n close(reason, message) {\r\n this.log.info('Connection close', {Connection: this, reason, message});\r\n super.close(reason, message);\r\n }\r\n\r\n reconnect() {\r\n this.close('wamp.goodbye.reconnect');\r\n this.open();\r\n }\r\n\r\n call(procedure, args, kwargs, options) {\r\n args = args || [];\r\n kwargs = kwargs || {};\r\n options = options || {};\r\n this.log.info('CALL', {procedure, args, kwargs, options});\r\n const d = this.defer();\r\n this.sessionPromise\r\n .then(session => session.call(procedure, args, kwargs, options).then(d.resolve, d.reject, d.notify))\r\n .catch(d.reject);\r\n return d.promise;\r\n }\r\n\r\n publish(topic, args, kwargs, options) {\r\n args = args || [];\r\n kwargs = kwargs || {};\r\n options = options || {};\r\n options.acknowledge = true;\r\n this.log.info('PUBLISH', {topic, args, kwargs, options});\r\n const d = this.defer();\r\n this.sessionPromise\r\n .then(session => session.publish(topic, args, kwargs, options).then(d.resolve, d.reject))\r\n .catch(d.reject);\r\n return d.promise;\r\n }\r\n\r\n register(procedure, endpoint, options) {\r\n options = options || {};\r\n options.acknowledge = true;\r\n this.log.info('REGISTER', {procedure, endpoint, options});\r\n const d = this.defer();\r\n this.sessionPromise\r\n .then(session => session.register(procedure, endpoint, options).then(d.resolve, d.reject))\r\n .catch(d.reject)\r\n ;\r\n return d.promise;\r\n }\r\n\r\n subscribe(topic, handler, options) {\r\n options = options || {};\r\n this.log.info('SUBSCRIBE', {topic, handler, options});\r\n const d = this.defer();\r\n this.sessionPromise\r\n .then(session =>\r\n session.subscribe(topic, handler, options).then(d.resolve, d.reject)\r\n )\r\n .catch(d.reject);\r\n return d.promise;\r\n }\r\n\r\n unregister(registration) {\r\n this.log.info('UNREGISTER', registration);\r\n const d = this.defer();\r\n this.sessionPromise\r\n .then(session =>\r\n session.unregister(registration).then(d.resolve, d.reject)\r\n )\r\n .catch(d.reject);\r\n return d.promise;\r\n }\r\n\r\n unsubscribe(subscription) {\r\n this.log.info('UNSUBSCRIBE', subscription);\r\n const d = this.defer();\r\n this.sessionPromise\r\n .then(session =>\r\n session.unsubscribe(subscription).then(d.resolve, d.reject)\r\n )\r\n .catch(d.reject);\r\n return d.promise;\r\n }\r\n}\r\n\r\nexport default Connection\r\n","import Connection from './Connection'\r\n\r\nexport default (Vue, options) => {\r\n\r\n const events = new Vue();\r\n\r\n const C = new Connection(options, events);\r\n\r\n // Expose through global property\r\n Vue.Wamp = C;\r\n\r\n // Expose through vm property\r\n Object.defineProperties(Vue.prototype, {\r\n '$wamp': {\r\n get() {\r\n if(!this._vueWampWithContext) {\r\n this._vueWampWithContext = C.withContext(this);\r\n }\r\n return this._vueWampWithContext;\r\n }\r\n }\r\n });\r\n\r\n // Expose through vm options\r\n Vue.mixin({\r\n data() {\r\n return {\r\n wampIsConnected: false,\r\n wampIsOpen: false,\r\n wampIsRetrying: false,\r\n }\r\n },\r\n created() {\r\n\r\n if (this === this.$root) {\r\n events.$on('status', (e) => {\r\n this.wampIsConnected = e.status.isConnected;\r\n this.wampIsOpen = e.status.isOpen;\r\n this.wampIsRetrying = e.status.isRetrying;\r\n this.$emit('$wamp.status', e);\r\n });\r\n events.$on('opened', (e) => this.$emit('$wamp.opened', e));\r\n events.$on('closed', (e) => this.$emit('$wamp.closed', e));\r\n events.$on('retrying', (e) => this.$emit('$wamp.retrying', e));\r\n events.$on('reconnected', (e) => this.$emit('$wamp.reconnected', e));\r\n }\r\n\r\n if (!this.$options.wamp)\r\n return;\r\n\r\n // exposing only these two makes any sense\r\n const validKeys = ['subscribe', 'register'];\r\n\r\n const $o = this.$options.wamp;\r\n\r\n // loop topics/procedures\r\n for (let type in validKeys) {\r\n type = validKeys[type];\r\n const t = $o[type];\r\n\r\n // loop topic/procedure names\r\n for (let name in t) {\r\n if (!t.hasOwnProperty(name))\r\n continue;\r\n\r\n const o = t[name];\r\n let handler;\r\n let options = {\r\n acknowledge: true,\r\n };\r\n\r\n if (typeof o === 'function') {\r\n // no options\r\n handler = o;\r\n }\r\n else {\r\n // user options\r\n handler = o.handler;\r\n options = Object.assign(options, o);\r\n delete options.handler;\r\n }\r\n if (typeof o !== 'function') {\r\n throw 'vue-wamp handler must be callable'\r\n }\r\n\r\n // do it!\r\n this.$wamp[type](name, handler.bind(this), options)\r\n .then(r => C.log.info('Component option: ' + type + ' ' + name, r))\r\n .catch(C.log.error)\r\n ;\r\n }\r\n }\r\n },\r\n beforeDestroy() {\r\n this.$wamp.destroy();\r\n }\r\n })\r\n\r\n}\r\n"],"names":["$export","require","S","F","assign","dP","f","FProto","Function","prototype","nameRE","NAME","configurable","get","match","e","Persist","connection","_con","_reconnectors","_subscriptions","_registrations","topic","handler","options","acknowledge","push","_this","subscribe","then","subscription","catch","console","error","procedure","endpoint","_this2","register","registration","i","hasOwnProperty","s","splice","r","length","shift","unsubscribe","unregister","ConnectionContext","context","events","_ctx","_persist","$on","reconnected","closed","open","reason","message","close","args","kwargs","call","d","defer","resolve","reject","promise","_this3","publish","clear","isConnected","isOpen","isRetrying","logPrefix","dummyConsole","log","info","warn","debugConsole","a","defaultConfig","debug","Connection","config","Object","_vueWampEvents","_vueWampCfg","_vueWampQRes","_vueWampQRej","_lastStatus","_statusUpdate","details","status","lastStatus","$emit","onopen","session","l","onclose","stop","will_retry","_autoreconnect_reset","sessionPromise","notify","autobahn","Vue","C","Wamp","defineProperties","_vueWampWithContext","withContext","mixin","data","wampIsConnected","wampIsOpen","wampIsRetrying","created","$root","$options","wamp","validKeys","$o","type","t","name","o","$wamp","bind","beforeDestroy","destroy"],"mappings":";;;;;8gDACA,GAAIA,CAAAA,CAAO,CAAGC,OAAO,CAAC,WAAD,CAArB,CAEAD,CAAO,CAACA,CAAO,CAACE,CAAR,CAAYF,CAAO,CAACG,CAArB,CAAwB,QAAxB,CAAkC,CAAEC,MAAM,CAAEH,OAAO,CAAC,kBAAD,CAAjB,CAAlC,KCHHI,CAAAA,CAAE,CAAGJ,OAAO,CAAC,cAAD,CAAP,CAAwBK,EAC7BC,CAAM,CAAGC,QAAQ,CAACC,UAClBC,CAAM,CAAG,wBACTC,CAAI,CAAG,OAGXA,CAAI,GAAIJ,CAAAA,CAAR,EAAkBN,OAAO,CAAC,gBAAD,CAAP,EAA6BI,CAAE,CAACE,CAAD,CAASI,CAAT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,WAAD,CAAc,UAAd,EAEZC,CAAE,CAAG,KAAKH,QAAL,CAAcC,mBAIvBG,CAAI,CAAGF,CAAS,CAACE,CAAD,KACVC,CAAAA,CAAC,CAAGF,CAAE,CAACC,CAAD,aAGHE,MACH,CAACD,CAAC,CAACpF,cAAFoF,CAAiBC,CAAjBD,EACH,gBAAA,IAEIE,CAAAA,CAAC,CAAGF,CAAC,CAACC,CAAD,EACPtG,CAAO,QACPC,CAAO,CAAG,CACZC,WAAW,GADC,KAIG,UAAb,QAAOqG,CAAAA,EAETvG,CAAO,CAAGuG,GAIVvG,CAAO,CAAGuG,CAAC,CAACvG,QACZC,CAAO,CAAG6D,MAAM,CAACjF,MAAPiF,CAAc7D,CAAd6D,CAAuByC,CAAvBzC,QACH7D,CAAAA,CAAO,CAACD,SAEA,UAAb,QAAOuG,CAAAA,OACH,oCAIRnG,CAAI,CAACoG,KAAL,CAAWJ,CAAX,EAAiBE,CAAjB,CAAuBtG,CAAO,CAACyG,IAARzG,CAAaI,CAAbJ,CAAvB,CAA2CC,CAA3C,EACGK,IADH,CACQ,SAAAc,CAAA,QAAKgE,CAAAA,CAAC,CAAC/B,GAAF+B,CAAM9B,IAAN8B,CAAW,qBAAuBgB,CAAvB,CAA8B,GAA9B,CAAoCE,CAA/ClB,CAAqDhE,CAArDgE,CADb,CAAA,EAEG5E,KAFH,CAES4E,CAAC,CAAC/B,GAAF+B,CAAM1E,KAFf,OAzBG,GAAI4F,CAAAA,IAAQD,CAAAA,EAAG,SAAXC,YALN,GAAIF,CAAAA,IAAQF,CAAAA,IAARE,GAhCH,CAAA,CAqERM,aArEQ,WAqEQ,MACTF,MAAMG,UAtEL,CAAVxB,CAtBF"} \ No newline at end of file +{"version":3,"file":"vue-wamp.js.map","sources":["../node_modules/core-js/modules/es6.object.assign.js","../node_modules/core-js/modules/es6.function.name.js","../src/Persist.js","../src/ConnetionContext.js","../src/Connection.js","../src/index.js"],"sourcesContent":["// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","\r\nclass Persist {\r\n\r\n constructor(connection) {\r\n this._con = connection;\r\n this._reconnectors = [];\r\n this._subscriptions = [];\r\n this._registrations = [];\r\n }\r\n\r\n subscribe(topic, handler, options) {\r\n options = options || {};\r\n options.acknowledge = true;\r\n this._reconnectors.push(() => {\r\n this._con.subscribe(topic, handler, options)\r\n .then((subscription) => this._subscriptions.push(subscription))\r\n .catch(console.error)\r\n });\r\n }\r\n\r\n register(procedure, endpoint, options) {\r\n options = options || {};\r\n options.acknowledge = true;\r\n this._reconnectors.push(() => {\r\n this._con.register(procedure, endpoint, options)\r\n .then((registration) => this._registrations.push(registration))\r\n .catch(console.error)\r\n });\r\n }\r\n\r\n unsubscribe(subscription) {\r\n for(let i in this._subscriptions) {\r\n if(!this._subscriptions.hasOwnProperty(i)) {\r\n continue;\r\n }\r\n const s = this._subscriptions[i];\r\n if(s === subscription) {\r\n this._subscriptions = this._subscriptions.splice(i, 1);\r\n }\r\n }\r\n }\r\n\r\n unregister(registration) {\r\n for(let i in this._registrations) {\r\n if(!this._registrations.hasOwnProperty(i)) {\r\n continue;\r\n }\r\n const r = this._registrations[i];\r\n if(r === registration) {\r\n this._registrations = this._registrations.splice(i, 1);\r\n }\r\n }\r\n }\r\n\r\n clear() {\r\n this._reconnectors = [];\r\n }\r\n\r\n reconnected() {\r\n for(let i in this._reconnectors) {\r\n const r = this._reconnectors[i];\r\n r();\r\n }\r\n }\r\n\r\n closed() {\r\n while(this._subscriptions.length > 0) {\r\n const s = this._subscriptions.shift();\r\n this._con.unsubscribe(s).catch(() => {});\r\n }\r\n while(this._registrations.length >0) {\r\n const r = this._registrations.shift();\r\n this._con.unregister(r).catch(() => {});\r\n }\r\n }\r\n\r\n}\r\n\r\nexport default Persist\r\n","\r\nimport Persist from './Persist.js'\r\n\r\nclass ConnectionContext {\r\n\r\n constructor(connection, context, events) {\r\n this._con = connection;\r\n this._ctx = context;\r\n this._persist = new Persist(connection, events);\r\n events.$on('reconnected', () => {\r\n this._persist.reconnected();\r\n });\r\n events.$on('closed', () => {\r\n this.closed();\r\n this._persist.closed();\r\n });\r\n this._subscriptions = [];\r\n this._registrations = [];\r\n }\r\n\r\n get isConnected() {\r\n return this._con.isConnected;\r\n }\r\n\r\n get isOpen() {\r\n return this._con.isOpen;\r\n }\r\n\r\n get isRetrying() {\r\n return this._con.isRetrying;\r\n }\r\n\r\n open() {\r\n return this._con.open();\r\n }\r\n\r\n close(reason, message) {\r\n return this._con.close(reason, message);\r\n }\r\n\r\n call(procedure, args, kwargs, options) {\r\n return this._con.call(procedure, args, kwargs, options)\r\n }\r\n\r\n subscribe(topic, handler, options) {\r\n options = options || {};\r\n options.acknowledge = true;\r\n const d = this._con.defer();\r\n this._con.subscribe(topic, handler, options)\r\n .then(subscription => {\r\n this._subscriptions.push(subscription);\r\n d.resolve(subscription);\r\n }, d.reject)\r\n ;\r\n this._persist.subscribe(topic, handler, options);\r\n return d.promise;\r\n }\r\n\r\n register(procedure, endpoint, options) {\r\n options = options || {};\r\n options.acknowledge = true;\r\n const d = this._con.defer();\r\n this._con.register(procedure, endpoint, options)\r\n .then(registration => {\r\n this._registrations.push(registration);\r\n d.resolve(registration);\r\n }, d.reject)\r\n ;\r\n this._persist.register(procedure, endpoint, options);\r\n return d.promise;\r\n }\r\n\r\n publish(topic, args, kwargs, options) {\r\n return this._con.publish(topic, args, kwargs, options);\r\n }\r\n\r\n unsubscribe(subscription) {\r\n for(let i in this._subscriptions) {\r\n if(!this._subscriptions.hasOwnProperty(i)) {\r\n continue;\r\n }\r\n const s = this._subscriptions[i];\r\n if(s === subscription) {\r\n this._subscriptions = this._subscriptions.splice(i, 1);\r\n }\r\n }\r\n this._persist.unsubscribe(subscription);\r\n return this._con.unsubscribe(subscription);\r\n }\r\n\r\n unregister(registration) {\r\n for(let i in this._registrations) {\r\n if(!this._registrations.hasOwnProperty(i)) {\r\n continue;\r\n }\r\n const r = this._registrations[i];\r\n if(r === registration) {\r\n this._registrations = this._registrations.splice(i, 1);\r\n }\r\n }\r\n this._persist.unregister(registration);\r\n return this._con.unregister(registration);\r\n }\r\n\r\n closed() {\r\n while(this._subscriptions.length > 0) {\r\n const s = this._subscriptions.shift();\r\n this._con.unsubscribe(s).catch(() => {});\r\n }\r\n while(this._registrations.length >0) {\r\n const r = this._registrations.shift();\r\n this._con.unregister(r).catch(() => {});\r\n }\r\n }\r\n\r\n destroy() {\r\n this.closed();\r\n this._persist.closed();\r\n this._persist.clear();\r\n }\r\n\r\n}\r\n\r\nexport default ConnectionContext\r\n","import autobahn from 'autobahn'\r\n\r\nimport ConnectionContext from './ConnetionContext'\r\nimport pkg from \"../package\";\r\n\r\nconst logPrefix = '[vue-wamp]';\r\n\r\nconst dummyConsole = {\r\n log: () => {\r\n },\r\n info: () => {\r\n },\r\n warn: () => {\r\n },\r\n error: () => {\r\n },\r\n};\r\n\r\nconst debugConsole = {\r\n log: (...a) => {\r\n console.log(logPrefix, ...a)\r\n },\r\n info: (...a) => {\r\n console.info(logPrefix, ...a)\r\n },\r\n warn: (...a) => {\r\n console.warn(logPrefix, ...a)\r\n },\r\n error: (...a) => {\r\n console.error(logPrefix, ...a)\r\n },\r\n};\r\n\r\nconst defaultConfig = {\r\n debug: false,\r\n};\r\n\r\nclass Connection extends autobahn.Connection {\r\n\r\n constructor(config, events) {\r\n config = Object.assign({}, defaultConfig, config);\r\n super(config);\r\n\r\n // plugin events\r\n this._vueWampEvents = events;\r\n // plugin config\r\n this._vueWampCfg = config;\r\n // session promise resolve queue\r\n this._vueWampQRes = [];\r\n // session promise reject queue\r\n this._vueWampQRej = [];\r\n\r\n let _lastStatus = {\r\n isConnected: false,\r\n isOpen: false,\r\n isRetrying: false,\r\n };\r\n\r\n const _statusUpdate = (details) => {\r\n const status = {\r\n isConnected: this.isConnected,\r\n isOpen: this.isOpen,\r\n isRetrying: this.isRetrying,\r\n };\r\n const e = {status, lastStatus: _lastStatus, details};\r\n this.log.info('Status emit', e);\r\n events.$emit('status', e);\r\n if(status.isOpen && !_lastStatus.isOpen) {\r\n events.$emit('opened', e);\r\n if(!status.isRetrying && _lastStatus.isRetrying) {\r\n events.$emit('reconnected', e);\r\n }\r\n }\r\n else if(!status.isOpen && _lastStatus.isOpen) {\r\n events.$emit('closed', e);\r\n }\r\n if(status.isRetrying && !_lastStatus.isRetrying) {\r\n events.$emit('retrying', e);\r\n }\r\n _lastStatus = status;\r\n };\r\n\r\n this.onopen = (session, details) => {\r\n this.log.info('Connection opened', {session, details});\r\n _statusUpdate(details);\r\n const l = this._vueWampQRes.length;\r\n while (this._vueWampQRes.length > 0) {\r\n let resolve = this._vueWampQRes.shift();\r\n resolve(session);\r\n }\r\n this.log.info('Sessions resolved:', l);\r\n this._vueWampQRej = [];\r\n if(config.hasOwnProperty('onopen') && typeof config.onopen === \"function\") {\r\n config.onopen(session, details);\r\n }\r\n };\r\n\r\n this.onclose = (reason, details) => {\r\n this.log.info('Connection closed', {reason, details});\r\n let stop = false;\r\n if(!details.will_retry) {\r\n this._autoreconnect_reset();\r\n stop = true;\r\n }\r\n _statusUpdate(details);\r\n const l = this._vueWampQRej.length;\r\n while (this._vueWampQRej.length > 0) {\r\n let reject = this._vueWampQRej.shift();\r\n reject({reason, details});\r\n }\r\n this.log.info('Sessions rejected:', l);\r\n this._vueWampQRes = [];\r\n if(config.hasOwnProperty('onclose') && typeof config.onclose === \"function\") {\r\n config.onclose(session, details);\r\n }\r\n return stop;\r\n };\r\n\r\n this.log.info('Connection create', {Connection: this});\r\n _statusUpdate(null);\r\n }\r\n\r\n get log() {\r\n return this._vueWampCfg.debug ? debugConsole : dummyConsole\r\n }\r\n\r\n // get isClosed() {\r\n // return !(this.isConnected || this.isOpen || this.isRetrying)\r\n // }\r\n\r\n get sessionPromise() {\r\n const d = this.defer();\r\n if (this.isOpen && this.session) {\r\n d.resolve(this.session)\r\n }\r\n else {\r\n this.open();\r\n this._vueWampQRes.push(d.resolve);\r\n this._vueWampQRej.push(d.reject);\r\n }\r\n return d.promise;\r\n }\r\n\r\n withContext(context) {\r\n return new ConnectionContext(this, context, this._vueWampEvents)\r\n }\r\n\r\n open() {\r\n if(this.isConnected || this.isOpen) {\r\n return;\r\n }\r\n this.log.info('Connection open', {Connection: this});\r\n super.open();\r\n }\r\n\r\n close(reason, message) {\r\n if(!this.isConnected && !this.isOpen && !this.isRetrying) {\r\n return;\r\n }\r\n this.log.info('Connection close', {Connection: this, reason, message});\r\n super.close(reason, message);\r\n }\r\n\r\n reconnect() {\r\n this.close('wamp.goodbye.reconnect');\r\n this.open();\r\n }\r\n\r\n call(procedure, args, kwargs, options) {\r\n args = args || [];\r\n kwargs = kwargs || {};\r\n options = options || {};\r\n this.log.info('CALL', {procedure, args, kwargs, options});\r\n const d = this.defer();\r\n this.sessionPromise\r\n .then(session => session.call(procedure, args, kwargs, options).then(d.resolve, d.reject, d.notify))\r\n .catch(d.reject);\r\n return d.promise;\r\n }\r\n\r\n publish(topic, args, kwargs, options) {\r\n args = args || [];\r\n kwargs = kwargs || {};\r\n options = options || {};\r\n options.acknowledge = true;\r\n this.log.info('PUBLISH', {topic, args, kwargs, options});\r\n const d = this.defer();\r\n this.sessionPromise\r\n .then(session => session.publish(topic, args, kwargs, options).then(d.resolve, d.reject))\r\n .catch(d.reject);\r\n return d.promise;\r\n }\r\n\r\n register(procedure, endpoint, options) {\r\n options = options || {};\r\n options.acknowledge = true;\r\n this.log.info('REGISTER', {procedure, endpoint, options});\r\n const d = this.defer();\r\n this.sessionPromise\r\n .then(session => session.register(procedure, endpoint, options).then(d.resolve, d.reject))\r\n .catch(d.reject)\r\n ;\r\n return d.promise;\r\n }\r\n\r\n subscribe(topic, handler, options) {\r\n options = options || {};\r\n this.log.info('SUBSCRIBE', {topic, handler, options});\r\n const d = this.defer();\r\n this.sessionPromise\r\n .then(session =>\r\n session.subscribe(topic, handler, options).then(d.resolve, d.reject)\r\n )\r\n .catch(d.reject);\r\n return d.promise;\r\n }\r\n\r\n unregister(registration) {\r\n this.log.info('UNREGISTER', registration);\r\n const d = this.defer();\r\n this.sessionPromise\r\n .then(session =>\r\n session.unregister(registration).then(d.resolve, d.reject)\r\n )\r\n .catch(d.reject);\r\n return d.promise;\r\n }\r\n\r\n unsubscribe(subscription) {\r\n this.log.info('UNSUBSCRIBE', subscription);\r\n const d = this.defer();\r\n this.sessionPromise\r\n .then(session =>\r\n session.unsubscribe(subscription).then(d.resolve, d.reject)\r\n )\r\n .catch(d.reject);\r\n return d.promise;\r\n }\r\n}\r\n\r\nexport default Connection\r\n","import Connection from './Connection'\r\n\r\nexport default (Vue, options) => {\r\n\r\n const events = new Vue();\r\n\r\n const C = new Connection(options, events);\r\n\r\n // Expose through global property\r\n Vue.Wamp = C;\r\n\r\n // Expose through vm property\r\n Object.defineProperties(Vue.prototype, {\r\n '$wamp': {\r\n get() {\r\n if(!this._vueWampWithContext) {\r\n this._vueWampWithContext = C.withContext(this);\r\n }\r\n return this._vueWampWithContext;\r\n }\r\n }\r\n });\r\n\r\n // Expose through vm options\r\n Vue.mixin({\r\n data() {\r\n return {\r\n wampIsConnected: false,\r\n wampIsOpen: false,\r\n wampIsRetrying: false,\r\n }\r\n },\r\n created() {\r\n\r\n if (this === this.$root) {\r\n events.$on('status', (e) => {\r\n this.wampIsConnected = e.status.isConnected;\r\n this.wampIsOpen = e.status.isOpen;\r\n this.wampIsRetrying = e.status.isRetrying;\r\n this.$emit('$wamp.status', e);\r\n });\r\n events.$on('opened', (e) => this.$emit('$wamp.opened', e));\r\n events.$on('closed', (e) => this.$emit('$wamp.closed', e));\r\n events.$on('retrying', (e) => this.$emit('$wamp.retrying', e));\r\n events.$on('reconnected', (e) => this.$emit('$wamp.reconnected', e));\r\n }\r\n\r\n if (!this.$options.wamp)\r\n return;\r\n\r\n // exposing only these two makes any sense\r\n const validKeys = ['subscribe', 'register'];\r\n\r\n const $o = this.$options.wamp;\r\n\r\n // loop topics/procedures\r\n for (let type in validKeys) {\r\n type = validKeys[type];\r\n const t = $o[type];\r\n\r\n // loop topic/procedure names\r\n for (let name in t) {\r\n if (!t.hasOwnProperty(name))\r\n continue;\r\n\r\n const o = t[name];\r\n let handler;\r\n let options = {\r\n acknowledge: true,\r\n };\r\n\r\n if (typeof o === 'function') {\r\n // no options\r\n handler = o;\r\n }\r\n else {\r\n // user options\r\n handler = o.handler;\r\n options = Object.assign(options, o);\r\n delete options.handler;\r\n }\r\n if (typeof o !== 'function') {\r\n throw 'vue-wamp handler must be callable'\r\n }\r\n\r\n // do it!\r\n this.$wamp[type](name, handler.bind(this), options)\r\n .then(r => C.log.info('Component option: ' + type + ' ' + name, r))\r\n .catch(C.log.error)\r\n ;\r\n }\r\n }\r\n },\r\n beforeDestroy() {\r\n this.$wamp.destroy();\r\n }\r\n })\r\n\r\n}\r\n"],"names":["$export","require","S","F","assign","dP","f","FProto","Function","prototype","nameRE","NAME","configurable","get","match","e","Persist","connection","_con","_reconnectors","_subscriptions","_registrations","topic","handler","options","acknowledge","push","_this","subscribe","then","subscription","catch","console","error","procedure","endpoint","_this2","register","registration","i","hasOwnProperty","s","splice","r","length","shift","unsubscribe","unregister","ConnectionContext","context","events","_ctx","_persist","$on","reconnected","closed","open","reason","message","close","args","kwargs","call","d","defer","resolve","reject","promise","_this3","publish","clear","isConnected","isOpen","isRetrying","logPrefix","dummyConsole","log","info","warn","debugConsole","a","defaultConfig","debug","Connection","config","Object","_vueWampEvents","_vueWampCfg","_vueWampQRes","_vueWampQRej","_lastStatus","_statusUpdate","details","status","lastStatus","$emit","onopen","session","l","onclose","stop","will_retry","_autoreconnect_reset","sessionPromise","notify","autobahn","Vue","C","Wamp","defineProperties","_vueWampWithContext","withContext","mixin","data","wampIsConnected","wampIsOpen","wampIsRetrying","created","$root","$options","wamp","validKeys","$o","type","t","name","o","$wamp","bind","beforeDestroy","destroy"],"mappings":";;;;;8gDACA,GAAIA,CAAAA,CAAO,CAAGC,OAAO,CAAC,WAAD,CAArB,CAEAD,CAAO,CAACA,CAAO,CAACE,CAAR,CAAYF,CAAO,CAACG,CAArB,CAAwB,QAAxB,CAAkC,CAAEC,MAAM,CAAEH,OAAO,CAAC,kBAAD,CAAjB,CAAlC,KCHHI,CAAAA,CAAE,CAAGJ,OAAO,CAAC,cAAD,CAAP,CAAwBK,EAC7BC,CAAM,CAAGC,QAAQ,CAACC,UAClBC,CAAM,CAAG,wBACTC,CAAI,CAAG,OAGXA,CAAI,GAAIJ,CAAAA,CAAR,EAAkBN,OAAO,CAAC,gBAAD,CAAP,EAA6BI,CAAE,CAACE,CAAD,CAASI,CAAT,CAAe,CAC9DC,YAAY,GADkD,CAE9DC,GAAG,CAAE,UAAY,CACf,GAAI,CACF,MAAO,CAAC,GAAK,IAAN,EAAYC,KAAZ,CAAkBJ,CAAlB,EAA0B,CAA1B,CACR,CAAC,MAAOK,CAAP,CAAU,CACV,MAAO,EACR,CACF,CAR6D,CAAf,KCL3CC,CAAAA,wBAEQC,EAAY,UAAA,MACjBC,KAAOD,CADU,MAEjBE,cAAgB,EAFC,MAGjBC,eAAiB,EAHA,MAIjBC,eAAiB,+CAGdC,EAAOC,EAASC,EAAS,YACjCA,CAAO,CAAGA,CAAO,EAAI,EADY,CAEjCA,CAAO,CAACC,WAARD,GAFiC,MAG5BL,cAAcO,KAAK,UAAM,CAC5BC,CAAI,CAACT,IAAL,CAAUU,SAAV,CAAoBN,CAApB,CAA2BC,CAA3B,CAAoCC,CAApC,EACGK,IADH,CACQ,SAACC,CAAD,QAAkBH,CAAAA,CAAI,CAACP,cAAL,CAAoBM,IAApB,CAAyBI,CAAzB,CAD1B,CAAA,EAEGC,KAFH,CAESC,OAAO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I,CAACoG,KAAL,CAAWJ,CAAX,EAAiBE,CAAjB,CAAuBtG,CAAO,CAACyG,IAARzG,CAAaI,CAAbJ,CAAvB,CAA2CC,CAA3C,EACGK,IADH,CACQ,SAAAc,CAAA,QAAKgE,CAAAA,CAAC,CAAC/B,GAAF+B,CAAM9B,IAAN8B,CAAW,qBAAuBgB,CAAvB,CAA8B,GAA9B,CAAoCE,CAA/ClB,CAAqDhE,CAArDgE,CADb,CAAA,EAEG5E,KAFH,CAES4E,CAAC,CAAC/B,GAAF+B,CAAM1E,KAFf,OAzBG,GAAI4F,CAAAA,IAAQD,CAAAA,EAAG,SAAXC,YALN,GAAIF,CAAAA,IAAQF,CAAAA,IAARE,GAhCH,CAAA,CAqERM,aArEQ,WAqEQ,MACTF,MAAMG,UAtEL,CAAVxB,CAtBF"} \ No newline at end of file diff --git a/package.json b/package.json index 88b59f0..98c5948 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-wamp", - "version": "2.0.4", + "version": "2.0.5", "description": "WAMP protocol wrapper library for Vue", "private": false, "main": "dist/vue-wamp.cjs.js",