0.5.0 • Published 3 years ago

@sz-md/node-reconnecting-tcp-socket v0.5.0

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

@sz-md/node-reconnecting-tcp-socket

A reconnecting TCP socket module:

const socket = await NodeReconnectingTCPSocket.create({
	host: "localhost",
	port: 1337
})

socket.on("connected", () => {
	console.log("Socket connected.")

	socket.write("Hallo!\n")
})

socket.on("disconnected", () => {
	console.log("Socket disconnected.")
})

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

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.0.1

3 years ago