I need to subscribe with ack:client and send "ACK" to confirm so queue will not get drained.
How do I send an "ACK" with header id: ??? (After I supply an ack:client header with the subscribe command)
after 2000 {s unsubscribe "/queue/SampleQueue"; puts "timeout"; exit 1}
s subscribe "/queue/SampleQueue" {
array set M $messageNvList
set ::messagebody $M(messagebody)
} {ack client} ;#<----- requires sending an "ACK" frame to remove from queue
vwait messagebody
I need to subscribe with ack:client and send "ACK" to confirm so queue will not get drained.
How do I send an "ACK" with header id: ??? (After I supply an ack:client header with the subscribe command)
after 2000 {s unsubscribe "/queue/SampleQueue"; puts "timeout"; exit 1} s subscribe "/queue/SampleQueue" { array set M $messageNvList set ::messagebody $M(messagebody) } {ack client} ;#<----- requires sending an "ACK" frame to remove from queue vwait messagebody