From 99dcd841ed1141b04018ab3089444fb45f0e48d5 Mon Sep 17 00:00:00 2001 From: jaketothepast Date: Thu, 24 Jan 2019 19:54:48 -0500 Subject: [PATCH] First commit --- index.js | 19 +++++++++++++++++++ package.json | 15 +++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 index.js create mode 100644 package.json diff --git a/index.js b/index.js new file mode 100644 index 0000000..1add1fe --- /dev/null +++ b/index.js @@ -0,0 +1,19 @@ +var net = require('net'); + +async function logAndSend(bytes) { + +} + +var server = net.createServer((socket) => { + socket.on('end', (c) => { + console.log("Client disconnected"); + }); +}) + +server.on('connection', () => { + console.log("Client connected!"); +}); + +server.listen(8124, () => { + console.log("Server bound."); +}) \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..fe619b1 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "node-http-proxy", + "version": "1.0.0", + "description": "A proxy built using NodeJS", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "run": "node index.js" + }, + "author": "jaketothepast", + "license": "MIT", + "dependencies": { + "express": "^4.16.4" + } +}