peers / peerjs

Simple peer-to-peer with WebRTC.
https://peerjs.com
MIT License
12.46k stars 1.43k forks source link

Peerjs does not work #423

Closed shivamgupta-gupta closed 5 years ago

shivamgupta-gupta commented 6 years ago

Neither the website nor the services work in peerjs. What are the possible issues. And when will it be live again?

isaacaddis commented 6 years ago

same here

SitePointEditors commented 6 years ago

Hey folks, would it be possible to get some kind of idea of if/when the PeerJS website will be live again? We're about to (re)publish an article on PeerJS over on SitePoint, and it'd be great to know if this is just a blip on the radar, or if the site is gone for good.

ZhuYuJin commented 6 years ago

I am working on two projects based on peerjs. Would the website be open again later? = =

mtrabelsi commented 6 years ago

Its SO obvious that the project is dead, no commit no activity website down. Look for other alternative.

Leetcore commented 6 years ago

Any good alternative?

mtrabelsi commented 6 years ago

https://github.com/feross/simple-peer

entozoon commented 6 years ago

^ But that doesn't offer a signalling server

ZhuYuJin commented 6 years ago

I find out that peerjs works more easily than simplepeer. So I establish my own server based on its server code https://github.com/peers/peerjs-server.

mtrabelsi commented 6 years ago

signaling server it is NOT a part of Webrtc foundation. Meaning you are free to make your own. you can test by hand copy paste the JSON (the offer object) object from one peer to the remote one, make it work, then you can make this work with signaling server using Socket.io later

mices commented 6 years ago

I'm with ZhuYuJin on this, I did the same thing, my nginx/passenger config needs some fine tuning but it works in development Seems I'm gonna need the docs or have to read the script itself to see if there's more options for me to fool around with enhancement wise for my website Basically there's nothing in the example that says "A videochat request has been sent ..." to the other user, there's nothing in the script that says "another user is requesting to initiate a videochat with you, accept/decline" That's all I really need to add at this point Since it works I don't know what's the significance of the project being dead aside from not being able to get the docs now I've already got it working Should I scrap it because the project's dead?

ZhuYuJin commented 6 years ago

I'm working on a temporary project. It seems peerjs shows the best match with my demands. If you need a long-term and maintainable NAT traversal tool, I think simplepeer or electron-webrtc is a better choice.

mices commented 6 years ago

It's a working implementation of webrtc I should be able to figure out what I'm trying to do I still don't understand what's the significance of the project being dead, how does that actually change anything for people running their own peer server Also, if the project is dead what is it that makes node install peer work?

Jagdeep-Sing commented 6 years ago

https://github.com/priologic/easyrtc is good

michelle commented 6 years ago

Hi there,

I apologize for the radio silence here -- there's no excuse for it.

If someone would like to take over this project, I'm more than happy to give them full access.

mtrabelsi commented 6 years ago

but.. what happened, that would be more interesting than giving access. Its sad to see the project down, it has good ranking in google..

kidandcat commented 6 years ago

Site is online again, PRs are being reviewed and merged, and services will be online soon this week

RamyaAshika commented 6 years ago

It seems like Peerjs is not working again?? @kidandcat

TrojanLij commented 6 years ago

I have encountered the same problem where PeerJS servers are down. The best way to go around it is to just host your own PeerJS-Server on some node.js server. I use PeerJS in a development environment which for me is enough to just have a VM up and running with my video/chat app installed on an apache2 server and node.js running a PeerJS-Server on the local network.

kidandcat commented 6 years ago

Exactly, I'm sorry for the downtime, but servers just went down, I'm moving everything to a new provider, everything will be ready asap.

Anyway, those of you who need a high SLA, the best option for you will always be to setup your own Peer-Server.

I'm sorry for the inconveniences.

kidandcat commented 6 years ago

The website is available here: https://peerjscom-qmqhkktbyd.now.sh/

The DNS server transfer may take up to 24h to complete.

kidandcat commented 6 years ago

The PeerServer is working, but only using WSS. I'll keep working on it.

RamyaAshika commented 6 years ago

May I know what is WSS? and whether this kind of issues will persist in the future? If so what is the solution I need to do? @kidandcat

RamyaAshika commented 6 years ago

I'm using tomcat server. If I want to deploy in an online server. How to do that in node js server? @TrojanLij

kidandcat commented 6 years ago

WSS is WebSocket Secure, it's like using HTTPS. To deploy your own server you need to use this: https://www.npmjs.com/package/peerjs-server

kidandcat commented 6 years ago

To use WSS, you have two options. Set Peer({host: "https://0.peerjs.com"}) or use latest version (0.3.18) which uses WSS by default.

TrojanLij commented 6 years ago

The way my node.js server is running right now is on a local network using Ubuntu server 16.04 and it is accessible within my development environment (LAN). If you wish to host it to others or have it so others can use it as a means to give an ID to user/users i would suggest you find some online hosting service for node.js app development (or some kind of test my node.js app in a global environment)

Node.JS hosting services - Payed. Node.JS hosting services - Free

If you just want to test your app in a local network environment first you can just try and run a node.js server with a virtual machine (I suggest doing this so you can get used to node.js if you haven't had much/any experience with node.js)

I hope this answer is helpful to you @RamyaAshika

RamyaAshika commented 6 years ago

Now if I want to run my application like as previous it will take 24hours right?? @kidandcat

RamyaAshika commented 6 years ago

Thank you @TrojanLij

kidandcat commented 6 years ago

If you update Peerjs lib to 0.3.18 (already in NPM), it will work right now

RamyaAshika commented 6 years ago

I have used this script only I didn't installed npm @kidandcat

kidandcat commented 6 years ago

cdnjs updates more or less every hour

RamyaAshika commented 6 years ago

Please let me know once its updated. Thanks a ton @kidandcat

RamyaAshika commented 6 years ago

Still, it's not updated?? @kidandcat

kidandcat commented 6 years ago

You can check it here: https://cdnjs.com/libraries/peerjs

I'm not related with that CDN. If use NPM or downloads the library from the repository, you already have the latest version.

RamyaAshika commented 6 years ago

Yes, it worked great !!! Thanks @kidandcat