Skip to content

Commit

Permalink
updating the Connect documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
OvidijusParsiunas committed Oct 27, 2024
1 parent 7441c7f commit db4346e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/docs/docs/connect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,13 @@ signal functions differ based on the type of connection you are establishing. Se
chatElementRef.connect = {
handler: (body, signals) => {
try {
fetch('custom-url).then((response) => {
fetch('custom-url').then((response) => {
signals.onResponse({text: 'Handler response'}); // displays the response text message
})
});
} catch (e) {
signals.onResponse({error: 'Error'}); // displays an error message
}
}
},
};
```

Expand Down

0 comments on commit db4346e

Please sign in to comment.