socket.emit('message', "this is a test"); //sending to sender-client only io.emit('message', "this is a test"); //sending to all clients, include sender