Updated socketio class.