From 201f857f4a6f85ce52582368ca578a10d39c1685 Mon Sep 17 00:00:00 2001 From: warunawijesinhaarachchige <100723638+warunawijesinhaarachchige@users.noreply.github.com> Date: Thu, 3 Mar 2022 01:46:19 -0800 Subject: [PATCH] Fixing the error with final code sample (#388) Hi All, There is a compilation error while running the sample. Fixed it. Thanks, Waruna --- .../streamingapi/tutorials/get-real-time-sentiment-analysis.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/streamingapi/tutorials/get-real-time-sentiment-analysis.md b/docs/streamingapi/tutorials/get-real-time-sentiment-analysis.md index bd985805..ab12507d 100644 --- a/docs/streamingapi/tutorials/get-real-time-sentiment-analysis.md +++ b/docs/streamingapi/tutorials/get-real-time-sentiment-analysis.md @@ -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); @@ -429,5 +428,3 @@ const handleSuccess = (stream) => { handleSuccess(stream); ``` - -If you properly implemented the code, the code runs successfully in the browser! \ No newline at end of file