snowflake/server-webrtc
David Fifield 019e2cea23 Update server shutdown procedure.
Ignore SIGINT, honor TOR_PT_EXIT_ON_STDIN_CLOSE.
2018-03-21 00:53:31 -07:00
..
http.go Move server to server-webrtc. 2016-03-26 15:24:44 -07:00
README.md Move server to server-webrtc. 2016-03-26 15:24:44 -07:00
snowflake.go Update server shutdown procedure. 2018-03-21 00:53:31 -07:00
torrc Enable tls websockets on the server 2016-12-19 16:07:02 -08:00

Ordinarily, the WebRTC client plugin speaks with a Broker which helps match and signal with a browser proxy, which ultimately speaks with a default websocket server.

However, this directory contains a WebRTC server plugin which uses an HTTP server that simulates the interaction that a client would have with the broker, for direct testing.

Edit server-webrtc/torrc and add "-http 127.0.0.1:8080" to the end of the ServerTransportPlugin line:

ServerTransportPlugin snowflake exec ./server-webrtc -http 127.0.0.1:8080
cd server-webrtc/
go build
tor -f torrc

Edit client/torrc and add "-url http://127.0.0.1:8080" to the end of the ClientTransportPlugin line:

ClientTransportPlugin snowflake exec ./client -url http://127.0.0.1:8080/