Added socket.io communicatio with scan button