arj03 / ssb-browser-core

ssb-server in a browser
Other
50 stars 8 forks source link

WebRTC-based transport #15

Closed KyleMaas closed 3 years ago

KyleMaas commented 3 years ago

Considering the browser side cannot use createServer() to create arbitrary listening server ports, could we use WebRTC as a transport method (at least a fallback transport)? That way, you could connect two browser-based clients together without a non-browser intermediary.

arj03 commented 3 years ago

Yeah that would be super sweet to support. Especially since it just works on LAN I've heard

KyleMaas commented 3 years ago

What would be the proper way (and place) to add this?

KyleMaas commented 3 years ago

Looks like maybe it would be best to add a plugin to ssb-js/multiserver?

KyleMaas commented 3 years ago

Might be easier than I thought, if I can get multiserver-dht working on Hyperswarm:

https://github.com/RangerMauve/hyperswarm-web

arj03 commented 3 years ago

Yeah that hyperswarm web looks really nice. Adding it as a multiserver plugin should work, then you should have full api of the remote node on connection.