This repository has been archived by the owner. It is now read-only.

What's the alternative if it's "out of date"? #9

Open
doraemondrian opened this Issue Nov 9, 2017 · 7 comments

Comments

Projects
None yet
5 participants
@doraemondrian

doraemondrian commented Nov 9, 2017

The first thing this repo says is it's out of date. Is this approach permanently discontinued? Or is there an alternative elsewhere I should look at?

Would love to start playing with Dat!

@millette

This comment has been minimized.

Show comment
Hide comment
@millette

millette Nov 17, 2017

Closest thing I found was mentionned in #5

millette commented Nov 17, 2017

Closest thing I found was mentionned in #5

@joehand

This comment has been minimized.

Show comment
Hide comment
@joehand

joehand Nov 17, 2017

Member

Hey, sorry for the delayed response! Thanks @millette for the assist.

If you are looking to do stuff in the browser, you can use hyperdrive as #5 says via browserify or another module bundler. See a bit more in our docs (under the hood section).

Is this approach permanently discontinued?

It's not discontinued but we found WebRTC performance pretty lacking so we are focusing elsewhere for now.

We also have dat-node if you aren't doing things in the browser.

Member

joehand commented Nov 17, 2017

Hey, sorry for the delayed response! Thanks @millette for the assist.

If you are looking to do stuff in the browser, you can use hyperdrive as #5 says via browserify or another module bundler. See a bit more in our docs (under the hood section).

Is this approach permanently discontinued?

It's not discontinued but we found WebRTC performance pretty lacking so we are focusing elsewhere for now.

We also have dat-node if you aren't doing things in the browser.

@kaosat-dev

This comment has been minimized.

Show comment
Hide comment
@kaosat-dev

kaosat-dev Dec 3, 2017

Hi @joehand I am still a bit confused by the usage of hyperdrive : namely:

  • can you use the dat ids directly in hyperdrive(without the dat:// protocol of course) ?
  • from my understanding of the docs, that would still suffer the same limitation as dat-js ie only being able to connect to other WebRTC based peers ?

kaosat-dev commented Dec 3, 2017

Hi @joehand I am still a bit confused by the usage of hyperdrive : namely:

  • can you use the dat ids directly in hyperdrive(without the dat:// protocol of course) ?
  • from my understanding of the docs, that would still suffer the same limitation as dat-js ie only being able to connect to other WebRTC based peers ?
@joehand

This comment has been minimized.

Show comment
Hide comment
@joehand

joehand Dec 3, 2017

Member

can you use the dat ids directly in hyperdrive(without the dat:// protocol of course) ?

Yes, the ids used in dat are the same as the hyperdrive id (archive.key).

from my understanding of the docs, that would still suffer the same limitation as dat-js ie only being able to connect to other WebRTC based peers ?

Correct, that is one of the big reasons we moved away from it. You can use electron-webrtc to connect to webrtc clients in node.

Member

joehand commented Dec 3, 2017

can you use the dat ids directly in hyperdrive(without the dat:// protocol of course) ?

Yes, the ids used in dat are the same as the hyperdrive id (archive.key).

from my understanding of the docs, that would still suffer the same limitation as dat-js ie only being able to connect to other WebRTC based peers ?

Correct, that is one of the big reasons we moved away from it. You can use electron-webrtc to connect to webrtc clients in node.

@kaosat-dev

This comment has been minimized.

Show comment
Hide comment
@kaosat-dev

kaosat-dev Dec 3, 2017

thanks for the quick answers @joehand !
one last question if you do not mind based on

Correct, that is one of the big reasons we moved away from it. You can use electron-webrtc to connect to webrtc clients in node.

This means there is currently no purely client side option to connect to the overall hyperdrive/ dat network at large ?

kaosat-dev commented Dec 3, 2017

thanks for the quick answers @joehand !
one last question if you do not mind based on

Correct, that is one of the big reasons we moved away from it. You can use electron-webrtc to connect to webrtc clients in node.

This means there is currently no purely client side option to connect to the overall hyperdrive/ dat network at large ?

@joehand

This comment has been minimized.

Show comment
Hide comment
@joehand

joehand Dec 6, 2017

Member

This means there is currently no purely client side option to connect to the overall hyperdrive/ dat network at large ?

Correct (ish). Its a bit confusing.

There is not really a dat network "at large," it depends on how clients connect to each other - and you can only connect to clients that speak the same "language". Most of the tools (command line, desktop, beaker) use the same network protocols (tcp, udp, mdns) for discovery and data transfer so they can all co-exist. But none of those work in the browser =(.

To connect to other types of clients from the browser you need a proxy that can connect webrtc clients to tcp/udp clients. That's been in our TODO for awhile but it's harder to prioritize webrtc/browser for our use cases.

Member

joehand commented Dec 6, 2017

This means there is currently no purely client side option to connect to the overall hyperdrive/ dat network at large ?

Correct (ish). Its a bit confusing.

There is not really a dat network "at large," it depends on how clients connect to each other - and you can only connect to clients that speak the same "language". Most of the tools (command line, desktop, beaker) use the same network protocols (tcp, udp, mdns) for discovery and data transfer so they can all co-exist. But none of those work in the browser =(.

To connect to other types of clients from the browser you need a proxy that can connect webrtc clients to tcp/udp clients. That's been in our TODO for awhile but it's harder to prioritize webrtc/browser for our use cases.

@carloslfu

This comment has been minimized.

Show comment
Hide comment
@carloslfu

carloslfu Jan 18, 2018

Hello @joehand, is there a list or a roadmap for that? If not, would be useful to have one. I want to contribute with this specific use case. Some thoughts on how to contribute would be appreciated.

carloslfu commented Jan 18, 2018

Hello @joehand, is there a list or a roadmap for that? If not, would be useful to have one. I want to contribute with this specific use case. Some thoughts on how to contribute would be appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.