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)
- Host: GitHub
- URL: https://github.com/lightsofapollo/tcptestproxy
- Owner: lightsofapollo
- Created: 2013-12-22T00:42:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-22T00:47:34.000Z (over 12 years ago)
- Last Synced: 2024-12-27T15:12:41.505Z (over 1 year ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).