lajosbencz / vue-wamp

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

How to handle reconnect #3

Closed kleinMaggus closed 7 years ago

kleinMaggus commented 7 years ago

Hey,

I have a problem to subscribe to a topic after the server has restarted (local dev). The reconnection to the server works, but I do not get any events after restart.

<template>
    <div>
        <p>Connected: {{ $wampIsConnected }}</p>
    </div>
</template>
<script>
export default {
    wamp: {
        subscribe: {
            'some-topic'(args, kwArgs, details) {
                console.log(args[0])
            }
        }
    }
}
</script>

How can I trigger to re-subscribe to the topic?

Thanks for your advice :)

lajosbencz commented 7 years ago

Hmmm... that's an oversight by me, give me a few hours and ill try to push out a fix for it! Thx for the input!

kleinMaggus commented 7 years ago

Hey, any progress/update? :)

lajosbencz commented 7 years ago

Sorry for getting back to you so late, i've pushed a new version which now supports automatic re-subscribe/register