From all example projects, it seems the only way is to refresh the browser.
What's the recommended way to do so programmatically?
I tried putting (make-channel-socket! ... and (sente/start-client-chsk-router! ... in atoms. By running the stop-fn as well as reset! the atoms to nil, I keep seeing Chsk send against closed chsk and Chsk is closed: will try reconnect ...
After remaking the channel-socket and router, there will be 2 client-ids trying to establish connection but neither will succeed.
The questions are:
Should I expect auto reconnection on server down and up?
If not, what should be done on client side to handle reconnection? (Except refresh)
From all example projects, it seems the only way is to refresh the browser. What's the recommended way to do so programmatically?
I tried putting
(make-channel-socket! ...
and(sente/start-client-chsk-router! ...
in atoms. By running the stop-fn as well as reset! the atoms to nil, I keep seeingChsk send against closed chsk
andChsk is closed: will try reconnect ...
After remaking the channel-socket and router, there will be 2 client-ids trying to establish connection but neither will succeed.
The questions are: