removeWebSocketInfo method
remove connection by socketId this is used when user leave or disconnected or on error first remove from the room and then remove from connection
Implementation
void removeWebSocketInfo(String socketId) {
WebSocketInfo? info = getWebSocketInfo(socketId);
if (info != null && info.activeRoom != null) {
removeWebSocketIdFromRoom(socketId, info.activeRoom);
}
_socketConnections.remove(socketId);
}