use io.sockets.emit isntead of socket.emit