Skip to content

Browser-to-Browser WebRTC connection demo using matchbox-socket #113

@johnny-smitherson

Description

@johnny-smitherson

There is this browser WebRTC library called matchbox that wraps low level webrtc calls in a simpler interface. The implementation there used a custom websocket server to pass around WebRTC offer and accept messages; I managed to replace that centralized websocket server with your network components.

This means one can use a combination of these 2 components to achieve direct browser-to-browser & browser-to-native connections of reliable or unreliable type, so we can keep heavy traffic off iroh network relays.

I'm wondering if you would be interested to have a port of that demo into this example repository, or if you would like to reference that demo with a link.

I'm also curious what sort of changes would take to add matchbox-socket as a custom transport into iroh directly, but that's a whole different subject we can explore after the demos are finalized. I do see a recurring conversation about webrtc and mention of webrtc future plans in blog posts

Also, review and comments for the iroh-related code in the pull request over there would be greatly appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions