Rejoin transmission when server leaves

This commit is contained in:
dijunkun
2023-10-08 14:30:54 +08:00
parent 7de31fd78f
commit 8cc04796b1
4 changed files with 39 additions and 13 deletions

View File

@@ -21,6 +21,7 @@ class TransmissionManager {
websocketpp::connection_hdl hdl);
std::string ReleaseUserIdFromTransmission(websocketpp::connection_hdl hdl);
bool ReleaseAllUserIdFromTransmission(const std::string& transmission_id);
websocketpp::connection_hdl GetWsHandle(const std::string& user_id);
std::string GetUserId(websocketpp::connection_hdl hdl);