Skip to content

Commit

Permalink
autodel client queue
Browse files Browse the repository at this point in the history
  • Loading branch information
ggalan87 committed Dec 3, 2023
1 parent cc1319e commit 38da9fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/RadioPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,12 @@ function start_autobahn() {
// Subscribe to the response queue
const responseQueue = `stomp-queue-${Math.random().toString(36).substr(2, 9)}`;
client.subscribe(`/queue/${responseQueue}`, message =>
set_meta(message.body)
set_meta(message.body), {"durable": false, "auto_delete": true}
);
client.publish({ destination: `${exchange}/${topic}`, headers: { 'reply-to': responseQueue }, body: 'First Message' });
},
});

console.log('Client created')

client.activate();
}

Expand Down

0 comments on commit 38da9fe

Please sign in to comment.