Skip to content

Commit 2f7532d

Browse files
committed
Update simple-chatbot javascript client from connect to startBotAndConnect
1 parent 130efef commit 2f7532d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • simple-chatbot/client/javascript/src

simple-chatbot/client/javascript/src/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class VoiceChatClient {
4949
// Add placeholder message
5050
this.addConversationMessage(
5151
'Connect to start talking with your bot',
52-
'placeholder'
52+
'placeholder',
5353
);
5454
}
5555

@@ -118,9 +118,9 @@ class VoiceChatClient {
118118
// Setup audio
119119
this.setupAudio();
120120

121-
// Connect using config
121+
// Start bot and connect using config
122122
const connectParams = TRANSPORT_CONFIG[this.transportType];
123-
await this.client.connect(connectParams);
123+
await this.client.startBotAndConnect(connectParams);
124124
} catch (error) {
125125
this.addEvent('error', error.message);
126126
console.error('Connection error:', error);

0 commit comments

Comments
 (0)