complete the notifier in socket.io