webrtc-socket-proxy

command module
v0.0.0-...-bd69139 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2019 License: MIT Imports: 10 Imported by: 0

README

webrtc-socket-proxy

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




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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL