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