I\'m using flask_socketio.
@socketio.on(\'client_connected\') def handle_client_connect_event(data): if current_user.is_authenticated: thread = so