robotopia-x / robotopia

:robot: Introducing kids to coding with tiny virtual robots!
https://robotopia-x.github.io/
MIT License
512 stars 56 forks source link

P2P not working locally and ongoing support #139

Open matthieunelmes opened 5 years ago

matthieunelmes commented 5 years ago

Hello,

Would it be possible to have a brief explanation of the SignalHub requirements? Is there a separate repo that handles the serverside communications for P2P

The current hubURL 'https://signalhub.perguth.de:65300/' does not work. I would like to get this running locally.

On a separate note, I'd be very keen to get involved in ongoing support and maintenance of this repo if possible?

paulsonnentag commented 5 years ago

We're no longer working aktively on robotopia. But I'm very excited that you're interested in working on it. I'm glad to help you with any questions to get you started.

SignalHub is required to initiate the initial connection between the clients. You can replace the current hubURL with one of the instances from the signal hub repo:

You can also deploy you own instance: https://github.com/mafintosh/signalhub#nowsh

matthieunelmes commented 5 years ago

Thanks for the reply.

I'm looking forward to getting involved as it will be a great project to introduce my son to programming.

I will try those signalhub urls.

Could signalhub be replaced with a socket.io connection and lightweight nodeJS app? Or is that too much?

paulsonnentag commented 5 years ago

You could replace the signalhub part with websockets. At the time we decided to use webrtc because we wanted to run all the logic on the client. Is there a particular reason you would prefer websockets?

matthieunelmes commented 5 years ago

No particular reason other than I'm not familiar with webrtc.

matthieunelmes commented 5 years ago

I'm still struggling to get this working. Trying to start the editor and it just hangs, no errors in the browser console.

screenshot 2018-12-30 at 20 41 06
paulsonnentag commented 5 years ago

I'm looking into it. I haven't touched the project in a while so I'm not sure yet what the issue is.

matthieunelmes commented 5 years ago

Thank you. I appreciate your time, I did try to dig around but I wasn't having much luck.