bouncy
Advanced tools
Comparing version 3.2.0 to 3.2.1
12
index.js
@@ -35,2 +35,3 @@ var http = require('http'); | ||
//first data event, fires once time | ||
stream.ondata = function (buf, i, j) { | ||
@@ -41,2 +42,8 @@ var res = ondata(buf, i, j); | ||
}; | ||
//second data event, fires other times | ||
stream.on('data',function(buf){ | ||
src.write(buf); | ||
}); | ||
//does not fires with websocket connection | ||
stream.onend = function () { | ||
@@ -47,2 +54,7 @@ var res = onend(); | ||
}; | ||
//fires when websocket connection ends | ||
stream.on('end',function(){ | ||
src.end(); | ||
}); | ||
} | ||
@@ -49,0 +61,0 @@ else stream.pipe(src); |
{ | ||
"name" : "bouncy", | ||
"description" : "route incoming http requests to http servers", | ||
"version" : "3.2.0", | ||
"version" : "3.2.1", | ||
"repository" : { | ||
@@ -6,0 +6,0 @@ "type" : "git", |
2555232
22159