I want to connect to my active message queue in node js this code is connecting to the queue, but the question is how to subscribe to a particular queue?
let ws = new WebSocket('ws://localhost:61614', 'stomp')
ws.onopen = () => {
console.log('opening...')
ws.send('CONNECT\n\n\0')
}
ws.onclose = () => console.log('closing...')
ws.onmessage = (e) => {
if (e.data.startsWith('MESSAGE')) {
console.log(e.data)
}
}
any suggeestion can be helpful, thanks