An open API service indexing awesome lists of open source software.

https://github.com/lightsofapollo/tcptestproxy

TCP Proxy (only designed to handle testing cases... use at your own risk)
https://github.com/lightsofapollo/tcptestproxy

Last synced: 8 months ago
JSON representation

TCP Proxy (only designed to handle testing cases... use at your own risk)

Awesome Lists containing this project

README

          

# tcptestproxy

TCP Proxy (only designed to handle testing cases... use at your own risk)

# Usage

```js
var ProxyServer = require('tcptestproxy');

// like if you want to proxy amqp for example
var proxy = new ProxyServer(5672);

proxy.listen(
0, // find an open port
function() {
// yep I am listening to stuff
proxy.port; // woot I got a port!
}
);

```

See the _test.js files for more examples of (and more importantly how to use it in your tests).