hello <@U053QJ8NGNS> & team! Need your inputs on b...
# wiremock-java
d
hello @Bas Dijkstra & team! Need your inputs on below points How to send 2 webhooks after my request matches? Given 2nd webhook should be sent after a minute Request & Response are in JSON format
l
Happy to leave this one to Bas but incase he doesn't see it for a while: You can add delays to the webhook definition - https://wiremock.org/docs/webhooks-and-callbacks/#adding-delays Add two webhooks to the
serveEventListeners
and add a delay to the second one that you want to be sent a minute after the first
👍 1
b
That's pretty much what I was going to suggest, Lee, thank you for saving me the typing 🙂
👍 2
d
got your point Lee! but I am using version 2.32.0 & hence using postServeActions. In that case when I run command to make wiremock up with arrays value to postServeActions, it shows error 'Unrecognized field "webhook"'
b
Is there anything that keeps you from updating to a (much) more recent version?
d
nothing, but org application is linked & configured through Jenkins job & all So changing would be time taking a bit
will try changing although
🙌 2
l
Would be great if you can update. There are lots of cool new things in the 3.x releases 🙂
🙌 1
d
working now, thanks a ton guys!
🙌 1
l
Awesome. Great to hear.