crossbario / autobahn-cpp

WAMP for C++ in Boost/Asio
https://crossbar.io/autobahn
Boost Software License 1.0
251 stars 104 forks source link

reconnection could be handled when the need is directly noticed on transport level #225

Open pratman opened 3 years ago

pratman commented 3 years ago

Right now methods:

of wamp_websocketpp_websocket_transport are private.

These are the methods that are called when:

  1. Connection fails (on_ws_fail)
  2. Connection closes (on_ws_close)

There are no possibilities for the user to directly react on these cases and try to reconnect only when needed. This forces to use frequent connection checkers.