diff --git a/examples/messaging/main.mjs b/examples/messaging/main.mjs index c6c64ab4..4de060aa 100644 --- a/examples/messaging/main.mjs +++ b/examples/messaging/main.mjs @@ -43,6 +43,7 @@ document.querySelector('#start').addEventListener('click', async () => { }) document.querySelector('#stop').addEventListener('click', async () => { await recvonly.disconnect() + document.querySelector('#received-messages').innerHTML = null }) document.querySelector('#send-message').addEventListener('click', async () => { const value = document.querySelector('input[name=message]').value