From cad79f917ae5a1b5457526c9198bec3057b12e94 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 13 Jun 2023 08:56:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) }) })