1.0.3 • Published 6 years ago

tcp-echo v1.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

tcp-echo

receives what you send

usage

cli

npx tcp-echo
npx tcp-echo -h

node

npm i tcp-echo
const createEchoServer = require('tcp-echo')

// options are passed to constructor net.Server(options)
// echo is the tcp server returned
const echoServer = createEchoServer(options)

const port = 1234

echoServer.on('connection', socket => {
  console.log(`New connection from ${socket.address().address}`)
})

echoServer.listen(port)
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago