add two methods to socket: addNotificationCallback and removeNotificationCallback