Skip to content

Commit

Permalink
Fixing the error with final code sample (#388)
Browse files Browse the repository at this point in the history
Hi All,
There is a compilation error while running the sample. Fixed it.


Thanks,
Waruna
  • Loading branch information
warunawijesinhaarachchige committed Mar 3, 2022
1 parent 180fbb8 commit 201f857
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ if (data.type === 'message' && data.message.hasOwnProperty('data')) {
request.send()
}

};
if (data.type === 'message_response') {
for (let message of data.messages) {
console.log('Transcript (more accurate): ', message.payload.content);
Expand Down Expand Up @@ -429,5 +428,3 @@ const handleSuccess = (stream) => {

handleSuccess(stream);
```

If you properly implemented the code, the code runs successfully in the browser!

0 comments on commit 201f857

Please sign in to comment.