Skip to content

Commit 0a35bea

Browse files
author
Bill Barnes
committed
add import to code samples
1 parent 21a7c6c commit 0a35bea

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ There are several ways:
5151
### Create a DirectLine object:
5252

5353
```typescript
54+
import { DirectLine } from 'botframework-directlinejs';
55+
5456
var directLine = new DirectLine({
5557
secret: /* put your Direct Line secret here */,
5658
token: /* or put your Direct Line token here (supply secret OR token, not both) */,
@@ -109,6 +111,9 @@ directLine.activity$
109111
Subscribing to either `postActivity` or `activity$` will start the process of connecting to the bot. Your app can listen to the connection status and react appropriately :
110112

111113
```typescript
114+
115+
import { ConnectionStatus } from 'botframework-directlinejs';
116+
112117
directLine.connectionStatus$
113118
.subscribe(connectionStatus => {
114119
switch(connectionStatus) {

0 commit comments

Comments
 (0)