PHP JavaScript
Latest commit 9df8a91 Mar 13, 2011 @gonzalo123 missing file
Failed to load latest commit information.
NovComet.js initial import Mar 11, 2011
NovComet.php missing file Mar 13, 2011
README add README Mar 11, 2011
comet.php missing file Mar 13, 2011
index.php initial import Mar 11, 2011

README

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();
    
});