Peerserver and webserver are two diffrent hosts then how to create a new peer

97 views
Skip to first unread message

Harry

unread,
May 23, 2015, 3:44:04 PM5/23/15
to pee...@googlegroups.com


Hi Group,

I installed peerjs-server by using github instructions in a linux box (peerjs-server.mydomain.com)

$>  yum install npm

$> npm install peer

$> peerjs --port 9000 --key mykey

Now i run these commands to download video chat demo files

wget http://cdn.peerjs.com/demo/videochat/index.html
wget http://cdn.peerjs.com/demo/videochat/style.css
wget http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js
wget http://cdn.peerjs.com/0.3/peer.js


Then i copied all files to my other host which is windows web server(peerjs-client.mydomain.com)running on https with trusted certificates.

Now i try to edit the html file which i got from the peerjs demo video chat   ( i am not sure what i am doing here)

 var peer = new Peer({ key: mykey host: 'peerjs-client.mydomain.com', port: 9000, path: 'peerjs-server.mydomain.com:9000', seuce:true});

Now the error it is not getting "yourId" and if change it is saying path error. i am not sure about what exactly the path.


Please help me here

any help is appreciated. 

Thank You,

Harry 
Reply all
Reply to author
Forward
0 new messages