updated dynamic streaming and reconnect for socketio