15:02, EEST
March 26, 2014
Hello,
I just would like to know if there is an easy way to disconnect from a server and reconnect manually later without having all subscriptions recreated ?
I set autoReconnect at false and keepSubscriptions at false.
But when after a disconnect I call connect the subscriptions are automatically recreated. I think this is a nice feature is most use case but I can’t seem to find a way to disable it.
Thanks
15:07, EEST
December 21, 2011
15:23, EEST
March 26, 2014
9:07, EEST
December 21, 2011
Ah, sorry for misreading. I did not imagine you want it that way, so understood it like I wanted 🙂
Reconnect is a “special connection” -or in fact, it is just a re-establishment of a temporary communication issue. The idea is that you lose no information during it, so also the subscriptions are kept by default.
But if you wish that the subscriptions are recreated, you need to work on the KeepAliveCount and LifieTimeCount to keep them small enough so that the subscription will timeout in the client and/or server. Only in that case it will be recreated.
Or can you explain why it would be a useful feature to make them always recreated? It might be possible to add an option for that – although it requires removing the old subscription and creating a new one in the server, which feels like extra “hassle” in normal circumstances.
14:01, EEST
December 21, 2011
Sorry, I think I still misunderstood your need ;(
So, you want to be able to disconnect, remove all subscriptions and then call connect without creating the subscriptions.
This would require you to remove the subscriptions from UaClient after disconnect and keeping them somewhere aside, until you want to connect them again – in which point you would add them back to the UaClient.
Is this what you are after?
Most Users Ever Online: 1919
Currently Online:
21 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 731
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
inilarythikibia, rickykennion, PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1