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
Disclaimer: I have no idea if this is an issue with stomp-js/stompjs, RabbitMQ or the Stomp plugin in RabbitMQ.
My web application uses Stomp to show toast messages. These get acknowledged as soon as the user clicks an 'x'. Otherwise they keep popping up with each page load. This is ok so far.
Now I have added a special Stomp message that will invoke a download (when the server is ready after generating a file it notifies the client). The code looks like this:
This in itself works fine, however any toast messages closed after the download no longer register the ack. They do call ack(); and there are no errors logged in the console, but with the next page refresh they pop up again. In RabbitMQ management I see the messages going from Unacked back to Ready when the download starts.
While looking for similar cases I came across #579 and I guess that the download may be doing something similar as opening a new tab. In fact in Firefox it does exactly that. In Chrome it does not open a tab, but the symptoms still remain (all ack()'s after that are ignored).
An ugly workaround is to reload the page directly after invoking the download...
Could someone confirm or deny the issue being related to #579 ? Is there a recommended fork?
The text was updated successfully, but these errors were encountered:
Disclaimer: I have no idea if this is an issue with stomp-js/stompjs, RabbitMQ or the Stomp plugin in RabbitMQ.
My web application uses Stomp to show toast messages. These get acknowledged as soon as the user clicks an 'x'. Otherwise they keep popping up with each page load. This is ok so far.
Now I have added a special Stomp message that will invoke a download (when the server is ready after generating a file it notifies the client). The code looks like this:
This in itself works fine, however any toast messages closed after the download no longer register the ack. They do call
ack();
and there are no errors logged in the console, but with the next page refresh they pop up again. In RabbitMQ management I see the messages going fromUnacked
back toReady
when the download starts.While looking for similar cases I came across #579 and I guess that the download may be doing something similar as opening a new tab. In fact in Firefox it does exactly that. In Chrome it does not open a tab, but the symptoms still remain (all
ack()
's after that are ignored).An ugly workaround is to reload the page directly after invoking the download...
Could someone confirm or deny the issue being related to #579 ? Is there a recommended fork?
The text was updated successfully, but these errors were encountered: