nodejs socket.io cannot connect to server?

后端 未结 4 1826
别那么骄傲
别那么骄傲 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:56

    Express 3.0.0alpha and socket.io are not (directly) compatible, due to changes in Express between 2.* and 3.* (or rather, changes in Connect between 1.* and 2.*). I would recommend you to downgrade to Express 2.5.9 for the time being, or you can follow this advice from Express' author, TJ Holowaychuk.

提交回复
热议问题