Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add README

  • Loading branch information...
commit 27e9549f731919c55a13e0b94a48f66924c613a3 1 parent b27ad13
@gonzalo123 authored
Showing with 23 additions and 0 deletions.
  1. +23 −0 README
View
23 README
@@ -0,0 +1,23 @@
+Lazy comet with PHP.
+Simple implementation of lazy comet PHP.
+
+NovComet.subscribe('customAlert', function(data){
+ console.log('customAlert');
+ //console.log(data);
+}).subscribe('customAlert2', function(data){
+ console.log('customAlert2');
+ //console.log(data);
+});
+
+$(document).ready(function() {
+ $("a.customAlert").click(function(event) {
+ NovComet.publish('customAlert');
+ });
+
+ $("a.customAlert2").click(function(event) {
+ NovComet.publish('customAlert2');
+ });
+
+ NovComet.run();
+
+});
Please sign in to comment.
Something went wrong with that request. Please try again.