We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
followed code can send w.Send("/queue/room_" + room_no, "", bs)
w.Send("/queue/room_" + room_no, "", bs)
but followed code can not send w.Send("/queue/room_" + room_no, "", bs, stomp.SendOpt.Receipt, stomp.SendOpt.Header("expires", "2049-12-31 23:59:59" /*time.Unix(end,0).Format("2006-01-02 15:04:05")*/ )/*, stomp.SendOpt.Header("priority", fmt.Sprintf("%d", p))*/)
w.Send("/queue/room_" + room_no, "", bs, stomp.SendOpt.Receipt, stomp.SendOpt.Header("expires", "2049-12-31 23:59:59" /*time.Unix(end,0).Format("2006-01-02 15:04:05")*/ )/*, stomp.SendOpt.Header("priority", fmt.Sprintf("%d", p))*/)
ActiceMq 5.15.6 docker run -dt -P webcenter/activemq
docker run -dt -P webcenter/activemq
The text was updated successfully, but these errors were encountered:
@jeek120 the header "expires" value is the milliseconds timestamp. see https://github.com/apache/activemq/blob/9abe2c6f97c92fc99c5a2ef02846f62002a671cf/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTimeStampingBrokerPluginTest.java#L94
strconv.FormatInt(time.Now().Add(yourMessageTimeoutDuration).UnixNano()/1e6, 10)
Sorry, something went wrong.
Issue go-stomp#47 Change example of expires header to have a value as…
a4053bb
… a timestamp in milliseconds
No branches or pull requests
followed code can send
w.Send("/queue/room_" + room_no, "", bs)
but followed code can not send
w.Send("/queue/room_" + room_no, "", bs, stomp.SendOpt.Receipt, stomp.SendOpt.Header("expires", "2049-12-31 23:59:59" /*time.Unix(end,0).Format("2006-01-02 15:04:05")*/ )/*, stomp.SendOpt.Header("priority", fmt.Sprintf("%d", p))*/)
ActiceMq 5.15.6
docker run -dt -P webcenter/activemq
The text was updated successfully, but these errors were encountered: