Skip to content

Instantly share code, notes, and snippets.

@kwhinnery
Created March 2, 2016 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwhinnery/cdbc071a66b2ba8e7e0c to your computer and use it in GitHub Desktop.
Save kwhinnery/cdbc071a66b2ba8e7e0c to your computer and use it in GitHub Desktop.
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