Connect http/websockets node.js client using arbitrary duplex stream
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

node-streamagent

Connect http/websockets node.js client using arbitrary duplex stream

var net         = require('net');
var StreamAgent = require('stream-agent');
http.request({
  path: '/some-endpoint', 
  agent: StreamAgent(net.connect('/var/some.sock'))
}, function(res) {
     // ..
}).end();

Bitdeli Badge