connects websockets

This commit is contained in:
Martina 2021-01-09 14:16:35 -08:00
parent 6d29342792
commit 0acb9783d5

View File

@ -19,6 +19,8 @@ import compression from "compression";
import cors from "cors";
import morgan from "morgan";
Websocket.create();
const app = next({
dev: !Environment.IS_PRODUCTION,
dir: __dirname,
@ -474,7 +476,7 @@ app.prepare().then(async () => {
const listenServer = server.listen(Environment.PORT, (e) => {
if (e) throw e;
Websocket.create(server);
Websocket.create();
NodeLogging.log(`started on http://localhost:${Environment.PORT}`);
});
});