diff --git a/index.js b/index.js index 1654bb8..c9c5dae 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,8 @@ app.listen(port, () => { db.init() app.use(express.json()) // for parsing application/json app.use(express.urlencoded({extended: true, limit: '50mb'})) // for parsing application/x-www-form-urlencoded - Promise.all([rest.init(app), ws.init(app)]).then(() => { + Promise.all([rest.init(app)]).then(() => { log(`${chalk.bgGreen.black(" DONE ")} serve is listening on ${port}`) + ws.init(app) }) })