answer successfully roundtripped back from snowflake proxy through broker to client (#1)

This commit is contained in:
Serene Han 2016-01-21 13:02:46 -08:00
parent 7081e6328c
commit c9013b2f80
5 changed files with 127 additions and 70 deletions

View file

@ -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