node.js express socket.io port 3000 in use

后端 未结 8 440
南笙
南笙 2021-02-02 16:33

I\'ve been following this(http://socket.io/get-started/chat/) tutorial on how to make a simple chat application using socket.io.

I tried to however use Express to create

8条回答
  •  北海茫月
    2021-02-02 17:13

    One of the best way to do this during the development would be through IDE where you can do comprehensive debugging and step through the code.

    If you are using WebStorm, this works. From run configurations -> Edit Configurations -> Nods.js and add the app.js as the node parameter. See below arrow in the screenshots for more details.

提交回复
热议问题