What triggers transferSubscription? #1359
LaurenceGA
started this conversation in
General
Replies: 1 comment 1 reply
-
Subscriptions are transferred after the Client reconnects and activates a new Session. You could manually trigger this by connecting to a Server, creating one or more Subscriptions with your Client, and then restarting that Server. In this case, the Client will automatically reconnect, create and activate a new Session, attempt to transfer the Subscriptions (which won't exist any more), and then notify you the subscription transfer failed. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I'd like to test handling of when the client fails to transfer subscriptions via the
onSubscriptionTransferFailed()
handler. But I can't figure out what triggers the milo client to attempt to transfer subscriptions in the first place.I can see there's something about it in the code in this session handler. I'm not sure what a SessionFsm is though or what triggers this piece of code.
I found this integ test, but it seems to be both disabled and commented out. Is this still valid? I didn't see subscriptions transfers triggered when I tried manually killing a session from the server in my own testing, but maybe I did it wrong?
Any advice on how to manipulate the client to trigger transfer subscriptions?
Beta Was this translation helpful? Give feedback.
All reactions