I got the following code from the git-hub but I don't know how to use and execute.
$> npm install peer --->where i want to install this node_module ?
//Run the server:
$> peerjs --port 9000 --key peerjs
or
var PeerServer = require('peer').PeerServer;
var server = new PeerServer({port: 9000, path: '/myapp'});
what's the difference between above steps. when and where to use those steps.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…