0.4.0 • Published 3 years ago

@sz-md/node-tcp-socket v0.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

@sz-md/node-tcp-socket

A simple TCP Socket module:

const NodeTCPSocket = require("@sz-md/node-tcp-socket")

const socket = await NodeTCPSocket.create({
	host: "google.com",
	port: 80
})

socket.on("data", (data) => {
	console.log("Received", data.toString())
	socket.close()
})

await socket.write("HEAD / HTTP/1.1\r\n\r\n")
0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago