<!DOCTYPE html> <head> <title>Pusher Test</title> <script src="
https://js.pusher.com/3.0/pusher.min.js"></script> <script> // Enable pusher logging - don't include this in production Pusher.log = function(message) { if (window.console && window.console.log) { window.console.log(message); } }; var pusher = new Pusher('c017321cc568cc06c674', { encrypted: true }); var channel = pusher.subscribe('test_channel'); channel.bind('my_event', function(data) { alert(data.message); }); </script> </head>