Created
March 2, 2016 22:34
-
-
Save kwhinnery/cdbc071a66b2ba8e7e0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var client = new Twilio.Conversations.Client('token'); | |
var convo = client.conversation('myCall'); | |
convo.display('#them', '#me').then(function() { | |
console.log('now your local media is showing, as is theirs!'); | |
}).catch(function(err) { | |
console.log('oops, something bad happened') | |
}); | |
convo.on('participantJoined', function(participant) { | |
console.log(participant.name + ' just joined!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment