Home

Awesome

<h1 align="center"> webrtc-socket-proxy </h1> <h4 align="center">Seamless peer-to-peer TCP socket proxy using WebRTC, with <a href="https://centrifugal.github.io/centrifugo/">centrifugo</a> as the signal server</h4> <p align="center"> <img src="https://img.shields.io/badge/stability-experimental-orange.svg"> <img src="https://travis-ci.org/ailabstw/webrtc-socket-proxy.svg?branch=master"> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a><br /> <br /> <img src="./how.png"><br/> </p>

Setup

$ go get -u github.com/poga/webrtc-socket-proxy

Usage

# the `As` proxy
$ webrtc-socket-proxy -signal=<SIGNAL_SERVER_ADDR> -secret=<SIGNAL_SERVER_SECRET> -as=<PEER_ID> -upstreamAddr=localhost:8000
# the `To` proxy
$ webrtc-socket-proxy -signal=<SIGNAL_SERVER_ADDR> -secret=<SIGNAL_SERVER_SECRET> -to=<PEER_ID> -listen=:4444

You can send data to your <upstreamAddr> via connecting to :4444 now.

Roadmap

License

The MIT License