I am trying to create a basic pusher connection to cryptsy. Since I am receiving public data such as 'price', I should 'not' have to authenticate, only providing the cryptsy APP_KEY. The following code fails:
<script src="pusher.min.js">
var pusher = new Pusher('cb65d0a7a72cd94adf1f');
var channel = pusher.subscribe('ticker.160');
channel.bind('new-price', function(data) {
alert('An event was triggered with message: ' + data.message);
});
channel.bind('pusher:subscription_error', function(status) {
if(status == 408 || status == 503){
// retry?
}
});
</script>
How do I make this work?