You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Client library for the [Microsoft Bot Framework](http://www.botframework.com)*[Direct Line](https://docs.botframework.com/en-us/restapi/directline3/)* protocol.
4
6
5
7
Used by [WebChat](https://github.com/Microsoft/BotFramework-WebChat) and thus (by extension) [Emulator](https://github.com/Microsoft/BotFramework-Emulator), WebChat channel, and [Azure Bot Service](https://azure.microsoft.com/en-us/services/bot-service/).
@@ -10,7 +12,7 @@ Used by [WebChat](https://github.com/Microsoft/BotFramework-WebChat) and thus (b
10
12
11
13
Anyone who is building a Bot Framework JavaScript client who does not want to use [WebChat](https://github.com/Microsoft/BotFramework-WebChat).
12
14
13
-
If you're currently using WebChat, you don't need to make any changes as it includes this package.
15
+
If you're currently using WebChat, you don't need to make any changes as it includes this package.
14
16
15
17
### *What is that funny `subscribe()` method in the samples below?*
16
18
@@ -50,7 +52,7 @@ This library uses RxJs/AjaxObserverable which is meant for use in a DOM environm
50
52
```typescript
51
53
global.XMLHttpRequest=require("xhr2");
52
54
```
53
-
55
+
54
56
## How to create and use a directLine object
55
57
56
58
### Obtain security credentials for your bot:
@@ -143,8 +145,8 @@ directLine.connectionStatus$
143
145
If your app created your DirectLine object by passing a token, DirectLine will refresh that token every 15 minutes.
144
146
Should your client lose connectivity (e.g. close laptop, fail to pay Internet access bill, go under a tunnel), `connectionStatus$`
145
147
will change to `ConnectionStatus.ExpiredToken`. Your app can request a new token from its server, which should call
146
-
the [Reconnect](https://docs.botframework.com/en-us/restapi/directline3/#reconnecting-to-a-conversation) API.
147
-
The resultant Conversation object can then be passed by the app to DirectLine, which will
148
+
the [Reconnect](https://docs.botframework.com/en-us/restapi/directline3/#reconnecting-to-a-conversation) API.
149
+
The resultant Conversation object can then be passed by the app to DirectLine, which will
148
150
149
151
```typescript
150
152
var conversation =/* a Conversation object obtained from your app's server */;
0 commit comments