2018-12-19 01:35:11 -06:00

32 lines
914 B

<!DOCTYPE html>
<title>Pusher Test</title>
<script src=""></script>
<script src="" type="text/javascript"></script>
// Enable pusher logging - don't include this in production
Pusher.logToConsole = true;
var pusher = new Pusher('your-appid', {
cluster: 'us2',
encrypted: true
var channel = pusher.subscribe('<?php echo $_GET['channel']; ?>');
channel.bind('my-event', function(data) {
Your notify link: <a href="<?php echo $_GET['channel']; ?>">Get Notified</a>
<br />
Leave this page open on your phone and go about your day.<br />
When the person who created this push channel writes a message, you will get a notification