Skip to content

Commit 4d7eaff

Browse files
committed
Merge pull request #225 from darashi/fix-readme
Fixes to make the websockets example work.
2 parents 11315e6 + 4fc1ee8 commit 4d7eaff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,11 @@ var http = require('http'),
335335
//
336336
// Create an instance of node-http-proxy
337337
//
338-
var proxy = new httpProxy.HttpProxy(
338+
var proxy = new httpProxy.HttpProxy({
339339
target: {
340340
host: 'localhost',
341341
port: 8000
342-
});
342+
}});
343343

344344
var server = http.createServer(function (req, res) {
345345
//
@@ -354,6 +354,8 @@ server.on('upgrade', function(req, socket, head) {
354354
//
355355
proxy.proxyWebSocketRequest(req, socket, head);
356356
});
357+
358+
server.listen(8080);
357359
```
358360

359361
### Configuring your Socket limits

0 commit comments

Comments
 (0)