From d6525d3f12f3732d2b28ecc8b163ad90e2c7b4a6 Mon Sep 17 00:00:00 2001 From: warunawijesinhaarachchige <100723638+warunawijesinhaarachchige@users.noreply.github.com> Date: Thu, 3 Mar 2022 01:45:47 -0800 Subject: [PATCH] Fix the compilation error (#387) The code sample does not run due to additional paranthesis. Fixed it --- .../streamingapi/tutorials/get-real-time-sentiment-analysis.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/streamingapi/tutorials/get-real-time-sentiment-analysis.md b/docs/streamingapi/tutorials/get-real-time-sentiment-analysis.md index d8d64972..180f15b1 100644 --- a/docs/streamingapi/tutorials/get-real-time-sentiment-analysis.md +++ b/docs/streamingapi/tutorials/get-real-time-sentiment-analysis.md @@ -346,7 +346,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); @@ -433,4 +432,4 @@ const handleSuccess = (stream) => { handleSuccess(stream); ``` -If you properly implemented the code, the code runs successfully in the browser! \ No newline at end of file +If you properly implemented the code, the code runs successfully in the browser!