Hi All,
I have a websocket setup with node.js running a
socket.io server. Then the browsers use the
socket.io library to connect with the server in order to get pushed messages. It all works well, but I have been thinking I would like to move the server off to a different solution like PubSub.
I have setup the pub sub and created an end point using the node.js libraries and was able to receive publications from Google PubSub. So that is good.
What I have not been able to find is an example of a Javascript implementation for the browser in order to authenticate to Google PubSub and receive publications and do something with them in the browser. Can someone point me to a javascript/html example? (Even something using JQuery is fine). I have seen things like PubSubJs but I don't see how to authenticate with Google as the PubSub server.
The reason I have been thinking of moving from websockets/
socket.io is that I would like to have browser endpoints but also Android phone end points and Google PubSub seems to be a great solution for both.the
The alternative is that I am not understanding the software architecture as I would have thought it would be really easy to find a small javascript library and HTML browser example of how to set it up.