Nodejs & socket io : warn - error raised: Error: listen EADDRINUSE

后端 未结 5 2006
陌清茗
陌清茗 2020-12-30 07:23

I am giving a try to Node.js with socket.io

Now here is my scenario i am ubuntu 12.04 user and i have folder pp on desktop

inside that i am putted server f

5条回答
  •  有刺的猬
    2020-12-30 07:48

    You are not connecting to your server, this is wrong:

    var iosocket = io.connect();
    

    this is right:

    var iosocket = io.connect('http://localhost:8080');
    

    Also your port 8080 is used on your server by "http-proxy", try an other port.

提交回复
热议问题