Skip to content

Commit a866ba5

Browse files
dkundelwell1791
authored andcommitted
Fix entirely broken JS snippets
1 parent 8ef58b9 commit a866ba5

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

ip-messaging/accessmanager/initialization/initialization.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ let chatClient = new ChatClient(token);
55

66
accessManager.on('tokenUpdated', am => {
77
// get new token from AccessManager and pass it to the library instance
8-
chatClient.updateToken(am.token));
8+
chatClient.updateToken(am.token);
99
});

notifications/register/create-binding-server/create-binding.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ app.post('/register', function(request, response) {
2525
console.log(binding);
2626
// Send a JSON response indicating success
2727
response.send({
28-
endpoint: binding.endpoint
28+
endpoint: binding.endpoint,
2929
message: message
3030
});
3131
}).catch(function(error) {

rest/voice/generate-twiml-play/example-1.3.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ http.createServer((req, res) => {
66
const twiml = new VoiceResponse();
77

88
twiml.say('Hello. It\'s me.');
9-
twiml.play{}, 'http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3');
9+
twiml.play({}, 'http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3');
1010

1111
res.writeHead(200, {'Content-Type': 'text/xml'});
1212

video/conversations/invite-single-client/invite-single-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
client.inviteToConversation('alice').then(function(conversation) {
22
console.log('Successfully connected to Conversation: ' + conversation);
33
conversation.on('participantConnected', function(participant) {
4-
console.log('A remote Participant connected: ' participant);
4+
console.log('A remote Participant connected: ' + participant);
55
})
66
}, function(error) {
77
console.error('Unable to connect to Conversation: ' + error.message);

voice/queueing/agent/queue-agent.3.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const VoiceResponse = require('twilio').twiml.VoiceResponse;
33
const twiml = new VoiceResponse();
44

5-
const = twiml.dial();
5+
const dial = twiml.dial();
66
dial.queue('Queue Demo');
77

88
console.log(twiml.toString());

0 commit comments

Comments
 (0)