|
%!s(int64=5) %!d(string=hai) anos | |
---|---|---|
.. | ||
README.md | %!s(int64=9) %!d(string=hai) anos | |
http.go | %!s(int64=5) %!d(string=hai) anos | |
snowflake.go | %!s(int64=5) %!d(string=hai) anos | |
torrc | %!s(int64=8) %!d(string=hai) anos |
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/