summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorGeorges-Etienne Legendre <legege@legege.com>2013-06-28 16:21:19 -0400
committerGeorges-Etienne Legendre <legege@legege.com>2013-06-28 16:21:19 -0400
commitf8b18bfe54845c7088e01d35b4815f5fe2b1a0b6 (patch)
treee42e166d8a0a110f4890ef254434fbd347d62690 /example
parentd6d0b647516da8fda66258cceef633c7a51f8971 (diff)
Fixing a issue with response socket being null, now using the request socket for close event watching
Diffstat (limited to 'example')
-rw-r--r--example/express-app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/example/express-app.js b/example/express-app.js
index 558708d..be2b7de 100644
--- a/example/express-app.js
+++ b/example/express-app.js
@@ -22,6 +22,7 @@
var MjpegProxy = require('../mjpeg-proxy').MjpegProxy;
var express = require('express');
var app = express();
+
var HTTP_PORT = 8080;
var cam1 = "http://admin:admin@192.168.124.54/cgi/mjpg/mjpg.cgi";
@@ -35,4 +36,4 @@ app.get('/index2.jpg', new MjpegProxy(cam2).proxyRequest);
app.listen(HTTP_PORT);
-console.log("Listening on port "+HTTP_PORT);
+console.log("Listening on port " + HTTP_PORT); \ No newline at end of file