Specifically this example covers the config service and PubSub together
You save the config, then push the same config out over PubSub.
As config in the config object is only updated via onChanged ONCE per page load on first call of that function. So updates to config have to be sent to the frontend another way.
So to update config you need to use the pubsub service
Is how to listen in the front end (on global)
Is the actual send for the global topic, but refer to further up the file for the Authentication construction