Hi, I instantiate the rxStomp instance and config it right above the code. I just swap the order of .watch and .publish then it just work! Though I haven't figured out the reason.
Thank you for your help!
r
rhythmic-guitar-55789
07/13/2022, 11:23 AM
Awesome, glad it helped 🙂 The reason it now works is that you first subscribe to that endpoint so when you do publish, the listener will be registered and called.
d
dazzling-garden-59866
07/22/2022, 3:04 PM
Hi , I have another question about how to set a timeout in this code block? in case the websocket connection failed