From f8b18bfe54845c7088e01d35b4815f5fe2b1a0b6 Mon Sep 17 00:00:00 2001 From: Georges-Etienne Legendre Date: Fri, 28 Jun 2013 16:21:19 -0400 Subject: Fixing a issue with response socket being null, now using the request socket for close event watching --- example/express-app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'example') 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 -- cgit v1.2.1