Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<div id="notification"></div>
<script src=""></script>
<script type="text/javascript">
// Load jQuery
google.load("jquery", "1.6");
<script src=''></script>
var pubsub = pubsubio.connect('localhost:9999');
//assina o hub e filtra para buscar somente as mensagens de nome=events para o user=eminetto
pubsub.subscribe({name: 'events', user: 'eminetto'}, function(doc) {
$('#notification').prepend('<a href="' + doc.detail + '">' + doc.title + '</a><br>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.