Skip to content

Commit 21a7c6c

Browse files
author
Bill Barnes
committed
error in sample code
1 parent b302322 commit 21a7c6c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Subscribing to either `postActivity` or `activity$` will start the process of co
110110

111111
```typescript
112112
directLine.connectionStatus$
113-
.subscribe(connectionStatus =>
113+
.subscribe(connectionStatus => {
114114
switch(connectionStatus) {
115115
case ConnectionStatus.Uninitialized: // the status when the DirectLine object is first created/constructed
116116
case ConnectionStatus.Connecting: // currently trying to connect to the conversation
@@ -119,7 +119,7 @@ directLine.connectionStatus$
119119
case ConnectionStatus.FailedToConnect: // the initial attempt to connect to the conversation failed. No recovery possible.
120120
case ConnectionStatus.Ended: // the bot ended the conversation
121121
}
122-
);
122+
});
123123
```
124124

125125
### Reconnect to a conversation

0 commit comments

Comments
 (0)