Snap3y
Snap3y

Reputation: 17

StompJS Timeout on watchForReceipt() method

I've built a livechat application using StompJS on the client. I'm using client.waitForReceipt() to confirm broker consumption but I want to add a timeout on it so if they fail, it doesn't wait forever. Is there a way to set a timeout on this or programmatically stop waiting for a receipt?

Upvotes: 0

Views: 135

Answers (1)

Sn1pey
Sn1pey

Reputation: 24

client.waitForReceipt() is deprecated.

Upvotes: 0

Related Questions