0.0.0 • Published 12 years ago
radiator v0.0.0
radiator
streaming interface to engine.io for client and server
server
var radiator = require('radiator');
var http = require('http');
var server = http.createServer(...);
server.listen(3000);
// create a new stream
var stream = radiator(server, '/foo');
stream.on('data', function(chunk) {
...
});
// this won't work until the stream is open
stream.write();
client
var radiator = require('radiator');
var stream = radiator('/foo');
stream.on('data', function(chunk) {
});
0.0.0
12 years ago