I try to implement an application using crossbar and autobahnJS where multiple web clients are synced by an node.JS API.
Let’s suppose I only want to sync one value. There is absolutely no problem once all clients have established a subscription. Then I can easily publish the new value and every client gets notified. But don’t know how to handle the case when a new client subscribes to a topic because it doesn’t know the actual value until the next value change that is published by the API.
Is there any known approach for this issue apart from registering a procedure by the API that is called by any new client when it subscribes to a topic? I played around with the wamp.subscription.on_subscribe meta event which basically works but using that I have no clue which topic/URI the client subscribed to (there are several topics that should implement this behaviour) or did I miss something in the docs?
I look forward to any help. Thank you for creating this great piece of software.