javascriptwebsocketlivechatstompjs

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?


Solution

  • client.waitForReceipt() is deprecated.