Giter Site home page Giter Site logo

go-webrtc-datachannel's Introduction

go-webrtc-datachannel

This is a planning / brainstorming area for building services using webrtc-datachannel and golang. The end result is ideally a library that satisfies the following scenerios:

Allowing a javascript client to communicate directly with a NAT'd server

This could be done with regular AJAX style request, or with websockets. However, if we implemented this using the same protocols as webrtc-datachannels, we would be able to do NAT punching. This would be useful, for example, if a go-server is running on a virtual machine on a users laptop, but being controlled by javascript client in the browser.

Ideal outcome: A hosted javascript client that can communicate with a go-server that is NAT'd, such as running in a Vagrant image on a users laptop.

For a proof of concept, supporting Chome or Firefox's (ideally both) datachannel implementation would be ideal. As of writing, Chrome and Firefox have different implementations.

Allowing two NAT'd go servers to communicate directly

At this point we really just care about NAT punching using STUN/ICE. However, webrtc-datachannel wraps up which part of these should be supported, and google hosts a STUN server that we could use.

Ideal outcome: Two go-servers, that can be running anywhere, but are able to establish an bi-directional communication channel.

Other notes

  • We do not care about the video/voice aspects of webrtc, only the datachannel
  • This library should be as idomic Go as possible.
  • Should be relatively easy to make this work with existing go services, such as etcd

Additional reading

Some resources on the protocols:

Please contibute by sending pull requests for ideas or research, or better yet, CODE! :D

go-webrtc-datachannel's People

Contributors

ccding avatar philips avatar polvi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.