Open c2ofh opened 2 years ago
Hi @c2ofh , I haven't had a chance to test out your example, but are you sure you aren't seeing it reconnect in the console? If you call your connect method against it's going to override your channel/cable variables and I think give you a completely new WS connection. The subscription to the 'connected' stream you initially established won't fire anymore because it was for the previous WS connection.
HI,
I have a subscription to get informed, when a channel subscription was disconnected. The subscription is really importend, so I want to reconnect. But I cam't find a way, to reconnect. The
this.channel.connected()
-Subscription is not getting fired.When I load the page I have the log.
For testing, I peform
this.cable?.disconnect();
after 20 seconds.But then I can't establish a new connection.