Node.js + Socket.io + Windows 7 / 8?

后端 未结 11 2058
迷失自我
迷失自我 2021-02-07 05:29

I\'ve been searching everywhere, but can\'t seem to find a solution. Is it possible to install Socket.io on Node.js on Windows 7?

If not, is there some sort of alternati

11条回答
  •  故里飘歌
    2021-02-07 05:42

    Either use a Linux box or git clone the socket.io repository and require it from a local path.

    You will have to copy the entire socket.io library into, for example, lib/socket.io/

    Then var io = require("./lib/socket.io/index.js

提交回复
热议问题