-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Examples do not work #26
Comments
Hi @jodinathan, I was in the same pool a couple of days back, this plugin now seems to be unmaintained. The closest I could make it work was using an external file mentioned in this comment. (#19 (comment)). Here is an example, please see if this helps you stomp: ^0.8.0 //Import custom.dart file provided in the above comment Then you can use the plugin as follows: custom Here the path "/gs-guide-websocket" is the stomp endpoint configured in the server (https://spring.io/guides/gs/messaging-stomp-websocket/). Replace localhost:8080 with your server url. The "uniqueId" helps you to unsubscribe the endpoint. Please note: This plugin does not support heartbeat functionality so the websocket connection gets disconnected in few seconds, I am yet to figure out a workaround for this. |
@saurabhgour I dug the code and the lib supports server-side heartbeat. I am using RabbitMQ but I think spring probably work.
|
@jodinathan Hey, is the recursive call to _numsListen() needed here? Should'nt the hearbeat functionality make sure that the socket does not get disconnected? |
@saurabhgour, it prevents from disconnecting by inactivity timeout, not internet disconnections |
I know it is obvious to you what
String id
is in thesubscribeString(id, dest, fn)
is, however, for me that is very new to stomp stuff (and rabbitmq altogether), I have to dig source and guess what it is.Is ID a uniqueId that I must generate?
The text was updated successfully, but these errors were encountered: