port notification and thread to socket.io