diff --git a/client/public/index.js b/client/public/index.js index fdaf250..11f6bfc 100644 --- a/client/public/index.js +++ b/client/public/index.js @@ -1,5 +1,6 @@ const UsernameForm = document.querySelector('#input-username'); const UsernameInput = document.querySelector('#input-text-username'); +// TODO: ^ LOWECASE U const ClientID = document.querySelector('#client-id'); const ConnectionState = document.querySelector('#connection-state'); diff --git a/server/index.js b/server/index.js index ad13f80..4b04fc0 100644 --- a/server/index.js +++ b/server/index.js @@ -4,7 +4,6 @@ const Router = require('./src/router.js'); const Socket = require('./src/socketserver.js'); require('dotenv').config() -const Crypto = require("crypto"); async function main() { diff --git a/server/src/webserver.js b/server/src/webserver.js index a74c0f2..c57ab50 100644 --- a/server/src/webserver.js +++ b/server/src/webserver.js @@ -7,11 +7,12 @@ const Http = require('http'); async function init() { // Yes all of these should be exported + // TODO: just call it port module.exports.Port = process.env.SERVER_PORT || 8080; module.exports.App = Express(); // must use HTTP server instead of express server so // that websockets can be hooked to the listen - module.exports.Server = Http.Server(module.exports.App) + module.exports.Server = Http.Server(module.exports.App); module.exports.App.use(BodyParser.json());