1.0.2 • Published 5 years ago
tcp-mirror v1.0.2
tcp-mirror
receives what you send
usage
cli
npx tcp-mirror
npx tcp-mirror -h
node
npm i tcp-mirror
const createMirror = require('tcp-mirror')
// options are passed to constructor net.Server(options)
// mirror is the tcp server returned
const mirror = createMirror(options)
const port = 1234
mirror.listen(port)
mirror.on('connection', socket => {
console.log(`Connection from ${socket.address().address}`)
})