websocket reconnection #3110
-
Developed with actix_web_actors, when the webscoket is disconnected, do not close the actor. When the websocket request arrives, according to the identification such as the ID of the url, the previous actor is matched, and then a StreamHandler is started。 God please give me some advice。 |
Beta Was this translation helpful? Give feedback.
Answered by
dns2utf8-tipi
Sep 8, 2023
Replies: 1 comment 1 reply
-
You would have to run an
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xingsongs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You would have to run an
Arena { active_sessions: Vec<Addr<MySession>> }
that all WebSockets connect to.MySession
as wellMySession
keeps itself alive with a timer, eg. for 5minMySession
with the secret or not if it is too late