I have written an angularjs application. There is a form where users can type in notes. The application uses a specific mqtt topic like "app/form/notes". The paho js client in this app publish and subscribe to the same topic. If a user is typing in somthing, the onchange event occurs and publish the new value to the topic.
Now the client is receiving the message which he was sending to the broker, because he is subscribed to this topic. But the received message is useless, because the value is the same. What is the best way to handle this problem?