Skip to content

Commit 22d7b0a

Browse files
author
subbu
committed
Fixed Documentation
1 parent d8e2ad5 commit 22d7b0a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ function setupSubscriptions () {
2626
FurhatGUI()
2727
.then(connection => {
2828
furhat = connection
29+
furhat.onConnectionError((_connection: WebSocket, ev: globalThis.Event) => {
30+
console.error("Error occured while connecting to Furhat skill")
31+
})
32+
furhat.onConnectionClose(() => {
33+
console.warn("Connection with Furhat skill has been closed")
34+
})
2935
setupSubscriptions()
3036
})
3137
.catch(console.error)

0 commit comments

Comments
 (0)