I’m currently writing a WAMP application with an AutobahnJS webpage an and an AutobahnPython application connecting to a Crossbar router on a VPS.
The AutobahnPython app will be used through a business WiFi connection which suffers from disconnects.
transport_factory is a class inheriting from WampWebSocketClientFactory and ReconnectingClientFactory.
I set the following options before connecting to attempt to detect connection issues. However, even with debug_wamp on, I see no pings at all.
So far, with the ReconnectingClientFactory, I can get my application to wait and retry if the server dies.
However, in my tests at home, if I cut the Wifi connection or am still connected to my router and intentionally cut the Internet,
the ApplicationSession will just hang infinitely.
The problem with this is that I have another LoopingCall running on the reactor that needs to monitor hardware whatever the connection is. This LoopingCall works as intended, but I would need it to be notified when there is no connection in this case.