0.0.4 • Published 9 years ago

node-polling v0.0.4

Weekly downloads
13
License
-
Repository
-
Last release
9 years ago

node-polling

High performance long polling server, Single timer + Event base.

Example:

var HttpConn = require('node-polling').create();
HttpConn.start(3000, '127.0.0.1');
HttpConn.on('conn', function(uid, queryObj, data){
    console.log('event_conn:', JSON.stringify(arguments));
    setTimeout(function(){
        HttpConn.SendByUid(uid, 'hello,world');
    }, 3000);
});
HttpConn.on('close', function(uid){
    console.log('event_close:', JSON.stringify(arguments));
});
0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago