File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " botframework-directlinejs" ,
3- "version" : " 0.9.0 " ,
3+ "version" : " 0.9.2 " ,
44 "description" : " client library for the Microsoft Bot Framework Direct Line 3.0 protocol" ,
55 "main" : " built/directLine.js" ,
66 "types" : " built/directLine.d.ts" ,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import 'rxjs/add/operator/filter';
1515import 'rxjs/add/operator/map' ;
1616import 'rxjs/add/operator/mergeMap' ;
1717import 'rxjs/add/operator/retryWhen' ;
18+ import 'rxjs/add/operator/share' ;
1819import 'rxjs/add/operator/take' ;
1920
2021import 'rxjs/add/observable/dom/ajax' ;
@@ -278,9 +279,10 @@ export class DirectLine implements IBotConnection {
278279 if ( options . pollingInterval !== undefined )
279280 this . pollingInterval = options . pollingInterval ;
280281
281- this . activity$ = this . webSocket && typeof WebSocket !== 'undefined' && WebSocket
282+ this . activity$ = ( this . webSocket && typeof WebSocket !== 'undefined' && WebSocket
282283 ? this . webSocketActivity$ ( )
283- : this . pollingGetActivity$ ( ) ;
284+ : this . pollingGetActivity$ ( )
285+ ) . share ( ) ;
284286 }
285287
286288 // Every time we're about to make a Direct Line REST call, we call this first to see check the current connection status.
You can’t perform that action at this time.
0 commit comments