Here you can easily test pushing data to browsers with Fanout. This page uses Faye's JavaScript library.
Initializing...
This page is subscribed to the test channel, and will display the results below:
Open this page in a separate window to see how pushing from either window will cause both windows to receive the message.
This page is using the following JavaScript to subscribe to events:
var client = new Faye.Client('https://fanout-mt.edgecompute.app/1234'); client.subscribe('/test', function (data) { $('#output').text(data); });
And here's a curl command that you can use to publish on your own. It contains an authentication token that lasts for 1 hour:
curl -d '{"channel":"/test","data":"hello world","ext":{"token":"xxxx"}}' https://fanout-mt.edgecompute.app/1234