Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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( + ' just joined!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment