Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <title>Pusher Test</title>
- <script src="//js.pusher.com/2.2/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('5337fe1e6622f6924832');
- var channel = pusher.subscribe('test_channel');
- channel.bind('my_event', function(data) {
- alert(data.message);
- });
- </script>
- </head>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement