bruh
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user