Closed vstokarev closed 5 years ago
Should be working since v2.0.0.
The caveat is that it will only resubscribe/reregister if the connection was regained while retrying.
If you re-open the connection with $wamp.open()
after connection loss, notthing will be re-established, you will have to do that manually.
This library can re-subscribe/register if connection was lost and then re-established and that is really great. But the problem is that this approach does not work if there were no server connection at the time application was launched.
I checked the following scenario:
I could possibly call page reload from JS, but there is no way how I can know if subscriptions worked or not. And I don't want to reload the whole page every time the app reconnects.
It would be great if you could fix subscriptions for the applications that start without real connection to server and successfully establish the connection later. And/or add onsubscribe() event, so it will be possible to process this case on application's side. Thank you.