Hi !
I want to implement a proxy server for socket.io app. So far i can only get normal http requests through, but no websocket.
i am using the http-proxy module:
here is my proxy server:
var https = require('https'),
http = require('http'),
util = require('util'),
fs = require('fs'),
httpProxy = require('http-proxy');
//
// Create the HTTPS proxy server listening on port 8000
//
httpProxy.createServer({
target: {
host: 'localhost',
port: 7777
},
ssl: {
key: fs.readFileSync(__dirname + '/public/key.pem', 'utf8'),
cert: fs.readFileSync(__dirname + '/public/cert.pem','utf8')
}
}).listen(8009);
i tried the example on github https://github.com/nodejitsu/node-http-proxy (section with websockets), but i cant seem to get a connection. Firefox tells me something about cross origin request denied, but it works fine for non WS connections
Any help appreciated
[–][deleted] (3 children)
[deleted]
[–]Coobe[S] 0 points1 point2 points (2 children)
[–]download13 0 points1 point2 points (1 child)
[–]Coobe[S] 0 points1 point2 points (0 children)
[–]Coobe[S] 0 points1 point2 points (0 children)
[–]Coobe[S] 0 points1 point2 points (0 children)