Skip to content

arodu/jquery.comet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy jQuery.comet

  • Install

    bower install arodu-jquery-comet
    
  • Connection

    var comet = $.comet({
        url: 'comet.php',
        onMessage: function(m){
            // Actions
        }
    });
  • start

    comet.start();
  • stop

    comet.stop();
  • options

    $.comet({
        url: 'comet.php',
        timeout: 60000,
        type: 'GET',
        dataType: 'json',
        autoStart: true,
        url: null, // String
        onMessage: function(){},
        onError: function(){},
    });

Releases

No releases published

Packages

No packages published