Push Test with Bayeux

Here you can easily test pushing data to browsers with Fanout. This page uses Faye's JavaScript library.

Initializing...

Subcribing and Publishing

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