Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peerjs does not work #423

Closed
shivamgupta-gupta opened this issue Apr 1, 2018 · 35 comments
Closed

Peerjs does not work #423

shivamgupta-gupta opened this issue Apr 1, 2018 · 35 comments

Comments

@shivamgupta-gupta
Copy link

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

@isaacaddis
Copy link

same here

@SitePointEditors
Copy link

SitePointEditors commented Apr 3, 2018

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
Copy link

ZhuYuJin commented Apr 4, 2018

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

@mtrabelsi
Copy link

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

@Leetcore
Copy link

Leetcore commented Apr 8, 2018

Any good alternative?

@mtrabelsi
Copy link

@entozoon
Copy link

entozoon commented Apr 9, 2018

^ But that doesn't offer a signalling server

@ZhuYuJin
Copy link

ZhuYuJin commented Apr 9, 2018

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
Copy link

mtrabelsi commented Apr 9, 2018

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
Copy link

mices commented Apr 16, 2018

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
Copy link

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
Copy link

mices commented Apr 16, 2018

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
Copy link

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

@michelle
Copy link
Member

michelle commented Jun 4, 2018

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
Copy link

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
Copy link
Member

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

@RamyaAshika
Copy link

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

@TrojanLij
Copy link

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
Copy link
Member

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 kidandcat reopened this Oct 24, 2018
@kidandcat
Copy link
Member

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

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

@kidandcat
Copy link
Member

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

@RamyaAshika
Copy link

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
Copy link

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

@kidandcat
Copy link
Member

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
Copy link
Member

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
Copy link

TrojanLij commented Oct 24, 2018

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
Copy link

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

@RamyaAshika
Copy link

Thank you @TrojanLij

@kidandcat
Copy link
Member

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

@RamyaAshika
Copy link

I have used this script only <script src="https://cdnjs.cloudflare.com/ajax/libs/peerjs/0.3.17/peer.min.js"></script> I didn't installed npm @kidandcat

@kidandcat
Copy link
Member

cdnjs updates more or less every hour

@RamyaAshika
Copy link

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

@RamyaAshika
Copy link

Still, it's not updated?? @kidandcat

@kidandcat
Copy link
Member

kidandcat commented Oct 24, 2018

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
Copy link

Yes, it worked great !!! Thanks @kidandcat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests