mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 14:11:23 -04:00
answer successfully roundtripped back from snowflake proxy through broker to client (#1)
This commit is contained in:
parent
7081e6328c
commit
c9013b2f80
5 changed files with 127 additions and 70 deletions
|
@ -32,7 +32,10 @@ class ProxyPair
|
|||
# TODO: Use a promise.all to tell Snowflake about all offers at once,
|
||||
# once multiple proxypairs are supported.
|
||||
log 'Finished gathering ICE candidates.'
|
||||
Signalling.send @pc.localDescription
|
||||
if COPY_PASTE_ENABLED
|
||||
Signalling.send @pc.localDescription
|
||||
else
|
||||
snowflake.broker.sendAnswer @pc.localDescription
|
||||
# OnDataChannel triggered remotely from the client when connection succeeds.
|
||||
@pc.ondatachannel = (dc) =>
|
||||
console.log dc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue