commit 99dcd841ed1141b04018ab3089444fb45f0e48d5 Author: jaketothepast Date: Thu Jan 24 19:54:48 2019 -0500 First commit 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" + } +}