Skip to content

Instantly share code, notes, and snippets.

@mmack
Created June 17, 2011 12:39
Show Gist options
  • Save mmack/1031340 to your computer and use it in GitHub Desktop.
Save mmack/1031340 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<head>
<title>Pusher Test</title>
<script src="http://js.pusherapp.com/1.8/pusher.min.js" type="text/javascript"></script>
<script type="text/javascript">
// Enable pusher logging - don't include this in production
Pusher.log = function(message) {
if (window.console && window.console.log) window.console.log(message);
};
// Flash fallback logging - don't include this in production
WEB_SOCKET_DEBUG = true;
var pusher = new Pusher('MY Pusher.key, app 5730');
pusher.bind('pusher:connection_established', function(data) {
console.log(data);
});
</script>
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment