Q: How do I install PeerJS Server on Winhost?
Q: I cannot work out where I do the command:
$ npm install peer -g
on the Winhost Server in the Control Panel.
Or can I unzip the files? Where do I get this zip from?
Q: Once I have all the files in my Winhost Directory, how do I get the PeerJS Server running?
Again, I do not know where in the Winhost Control Panel do I write the line:
$ peerjs --port 9000 --key peerjs --path /myapp
(NOTE: I know I have to change the port to 90.)
OR can I just create the js file with the code?:
const { PeerServer } = require('peer');
const peerServer = PeerServer({ port: 9000, path: '/myapp' });
and start it by accessing that javascript file in my browser by typing its location in the url of my browser? (NOTE: Again I know I have to change the 9000 to 90)
Q: And will this PeerJS Server run indefinitely?
Q: Then, when I want to do maintenance, how do I shut the server down?