Add config option for external server connectivity from your DOM. This way you can make difference between the server URL you signed from the browser client and the internal URL where the message are published