Indeed the code above was meant to demonstrate that things are working fine.
There’s the 2 code @robertdolca used in his project and i simply slimmed it down to the bare pub/sub essentials for demonstration if you are interested to test out
For those who are losing subscriptions when a core drops and re-establishes its connection –
I just wrote up an example of how you could use heartbeat type events to detect if a subscription is lost, and reset your core / cloud connection to get it back. This is totally a temporary workaround type of thing, but it was fun to write anyway. Obviously this is a drastic workaround, and while it might work at home, I wouldn’t recommend this for say forklifts, and killer robots and stuff.