2.0.3 • Published 5 months ago
bare-tcp v2.0.3
bare-tcp
Native TCP sockets for JavaScript.
npm i bare-tcp
Usage
const tcp = require('bare-tcp')
const server = tcp.createServer()
server.on('connection', (socket) => socket.on('data', console.log))
server.listen(() => console.log('server is up'))
const { port } = server.address()
const socket = tcp.createConnection(port)
socket.write('hello world')
License
Apache-2.0
2.0.3
5 months ago
2.0.2
6 months ago
2.0.1
7 months ago
2.0.0
7 months ago
1.9.1
8 months ago
1.8.2
10 months ago
1.9.0
9 months ago
1.8.1
10 months ago
1.8.4
9 months ago
1.8.3
10 months ago
1.5.5
12 months ago
1.8.0
12 months ago
1.7.0
12 months ago
1.6.0
12 months ago
1.5.4
1 year ago
1.5.3
1 year ago
1.5.2
1 year ago
1.5.1
1 year ago
1.5.0
1 year ago
1.4.1
1 year ago
1.3.2
1 year ago
1.4.0
1 year ago
1.3.1
1 year ago
1.3.0
1 year ago
1.2.1
1 year ago
1.2.0
1 year ago
1.1.2
1 year ago
1.1.1
1 year ago
1.1.0
1 year ago
1.0.0
1 year ago