nodejs socket.io cannot connect to server?

后端 未结 4 1825
别那么骄傲
别那么骄傲 2020-12-28 19:30

I\'ve been staring at node.js and socket.io examples all afternoon and i\'m trying to piece together a simple page that will tell me how many users I have connected to the s

4条回答
  •  执念已碎
    2020-12-28 19:53

    replace app.use(express.bodyParser());, with

    app.use(express.json());
    app.use(express.urlencoded());
    

    ...save file, restart node server.

提交回复
热议问题