Skip to content

ailabstw/webrtc-socket-proxy

Repository files navigation

webrtc-socket-proxy

Seamless peer-to-peer TCP socket proxy using WebRTC, with centrifugo as the signal server

License: MIT


Setup

  • Install webrtc-socket-proxy
$ 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

  • TURN server support
  • Multiplex Connections. Currently we only support one connnection per proxy-pair

License

The MIT License

About

Peer-to-peer TCP socket proxy using WebRTC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages