This commit is contained in:
Ben
2021-03-13 17:54:20 +00:00
parent 6c43601781
commit 68b64e140e
3 changed files with 3 additions and 2 deletions

View File

@@ -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');

View File

@@ -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()
{

View File

@@ -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());