lajosbencz / vue-wamp

AutobahnJS wrapper library fo Vue.js
MIT License
48 stars 13 forks source link

Auto unsubscribe with an unsubscribed channel: subscription not active – "beforeDestroy hook" #17

Closed zzdever closed 5 years ago

zzdever commented 5 years ago

If a channel is unsubscribed intentionally, when the vue component is destroyed, vue-wamp still unsubsribes that channel, thus cause error: subscription not active – "beforeDestroy hook".

lajosbencz commented 5 years ago

Should be fixed now, but only if you call $wamp.unregister(registration) instead of registration.unregister() (and unsubscribe respectively).

zzdever commented 5 years ago

@lajosbencz

got error with 2.0.5:

ERROR Failed to compile with 4 errors
These relative modules were not found:

  • ./_descriptors in ./node_modules/vue-wamp/dist/vue-wamp.js
  • ./_export in ./node_modules/vue-wamp/dist/vue-wamp.js
  • ./_object-assign in ./node_modules/vue-wamp/dist/vue-wamp.js
  • ./_object-dp in ./node_modules/vue-wamp/dist/vue-wamp.js

Any idea?

lajosbencz commented 5 years ago

Temporary solution described here: #20