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

It's unclear how to use WebRTC transport #766

Closed
pashoo2 opened this issue Jun 28, 2019 · 5 comments
Closed

It's unclear how to use WebRTC transport #766

pashoo2 opened this issue Jun 28, 2019 · 5 comments

Comments

@pashoo2
Copy link

pashoo2 commented Jun 28, 2019

Hello! I like gundb, but it's unclear how to use it with WebRTC.
There is no a documentation for it and all examples with /lib/webrtc doesn't work.
I'll be very happy if there will be an clearify explanation how to use WebRTC as transport layer.
Thank you!

@amark
Copy link
Owner

amark commented Jul 12, 2019

@pashoo2 we were recently talking about this in the chat room.. lib/webrtc was working, but you are right, it doesn't seem to be activating anymore.

This may be because of recently added AXE? Try Gun({axe: false see if that fixes it?

Sorry for the delay, been hectic getting all these integrations done in time for a ton of big launches!

@amark
Copy link
Owner

amark commented Jul 17, 2019

@pashoo2 latest version should have fixed lib/webrtc whether you are using AXE or not. :D :D :D

The process is exactly the same as before, just drop in lib/webrtc.js to browser like the https://gun.eco/docs/Todo-Dapp tutorial explains.

Except now, it should actually work. (NOTE: WebRTC itself fails 40% of the time for me)

try playing examples/game/space.html from different computers to see if it works - if it does, I temporarily have it print "GOBBLE GOBBLE" on the screen. If you see that, and other computer spaceships are still moving around, then it should be working!

@pashoo2 also, WELCOME TO THE COMMUNITY!!! What are you working on? What are you building? + Please do check out the community chat ( https://gitter.im/amark/gun ) it is super active, and people there will help you out with whatever you need! :)

@amark amark closed this as completed Jul 17, 2019
@pashoo2
Copy link
Author

pashoo2 commented Jul 18, 2019

@amark thank for your response. We are decided to make something like you done with the GunDB. But the WebRTC will be as the basic transport layer. And all ecosystem will be based around it.

@mgttt
Copy link

mgttt commented Dec 22, 2019

Hi, is any more webrtc examples based on gun?

@amark
Copy link
Owner

amark commented Dec 24, 2019

@wanjochan you just add lib/webrtc.js in the browser, and it automatically attempts, tutorial here: https://gun.eco/docs/Todo-Dapp

I think examples/game/space.html is an example that has it on by default.

Welcome to the community :) definitely check out http://chat.gun.eco for a super friendly community who can help out.

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

3 participants