You need to sign in to do that
Don't have an account?
sammyd
event time limit?
so, my app is working.. but I notice that sometimes after receiving the event, I add some more code and recycle the app,
and I get a recurrance of the event that just processed.
If I wait 3-5 minutes (not tracking time really), then I don't get a recurrance.
is there an event lifetime I need to think about?
This is a cornercase bug. We'll fix it soon. Normally if you keep connected this should not happen. But in this case since you are recycling the client and starting with a fresh handshake again there is a chance you end up on a different appserver instance in our pods - which has slightly different view of things. It is an easy fix. We'll make it available in production soon. Thanks for finding it and bringing it to our attention.
Thanks!!
Vinod.
All Answers
One way to ensure this can never happen is to do a new handshake and subscribe each time you are regenerating your code. Another thing to note is that every message contains a sequential, unique ID field called "id" that has values like "1" "2" "3" that you can use to disambiguate responses.
Is this a client app or an in browser app?
I do a new handshake and subscribe on each startup of the app. but still see this duplicated event.
this is the sample Java code with my message handler added.
Sam
this is the typical startup and event message,
this happens every time I start the app up.
I don't see a sequence number on the event message
here is the event handler registration, and entrypoint from the sample
This is a cornercase bug. We'll fix it soon. Normally if you keep connected this should not happen. But in this case since you are recycling the client and starting with a fresh handshake again there is a chance you end up on a different appserver instance in our pods - which has slightly different view of things. It is an easy fix. We'll make it available in production soon. Thanks for finding it and bringing it to our attention.
Thanks!!
Vinod.
thank you for the feedback! one more thing to worry about off the checklist.