siemens / tstomp

tStomp
Other
6 stars 3 forks source link

ACK frames supported? #13

Open donpwinston opened 10 years ago

donpwinston commented 10 years ago

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