You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are creating a queue with the default settings (vt: 30, delay: 0, maxsize: 65536).
Then your are sending a message "Hello world" with delay=1. The delay=1 means this particular message will only appear after 1 second to recipients. As you are trying to receive the message right afterwards it won't be received. Which is correct.
Send a message without the "delay" parameter to receive it immediately.
Try a receiveMessage after 1+ seconds to receive the message.
I wonder how to create delayed message queue. Please take a look on my test case and the result
Result:
queue created
message sent
Message sent. ID:e2mp1o4p90fNowqfWpNbxNdAj2huPIKN
.null
No messages for me...
I didn't put done inside receiveMessage function and wait until timeout but the receiveMessage never triggered again.
The text was updated successfully, but these errors were encountered: