You've already forked SMO-Plugin-Base
mirror of
https://github.com/CraftyBoss/SMO-Plugin-Base.git
synced 2026-04-01 08:53:07 -07:00
10 lines
443 B
JavaScript
10 lines
443 B
JavaScript
const net = require("net");
|
|
net.createServer((socket) => {
|
|
console.log("new connection", socket.remoteAddress, socket.remotePort, socket.remoteFamily);
|
|
socket
|
|
.on("data", (data) => {
|
|
process.stdout.write(data.toString("utf-8"));
|
|
})
|
|
.on("close", (error) => console.log("new disconnect", error))
|
|
.on("error", () => console.log("errorma"));
|
|
}).listen(3080, () => { console.log("listening"); }); |