xcarve-proxy/index.js
2015-08-14 17:32:51 -04:00

12 lines
272 B
JavaScript

var util = require('util'),
httpProxy = require('http-proxy'),
host = 'xcarve.local',
port = 1338;
var server = httpProxy.createServer({
target: 'ws://' + host + ':' + port,
ws: true
});
server.listen(port);
process.on('uncaughtException', console.log);