add defaults callback for socketio connection and disconnection