-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with connectionStatus #8
Comments
The only problem with the sample code is that To answer your question, I'm closing this issue, but feel free to add more comments if you continue to see problems. |
Thanks for the quick response @billba 👍 Sorry but I'm still slightly confused because if I In the example in the docs I can't see where
|
It's not an RxJS or TypeScript thing, just an object exported from the library. You need to import it. If you're using ES6 modules then you'll need to do something like: import { DirectLine, ConnectionStatus } from 'botframework-directlinejs'; This is not necessarily obvious so I have updated the code samples with |
Ahh that makes way more sense ha. Thanks @billba :) |
Hi,
I've been following the docs and get some unexpected behaviour when trying to monitor the connection status...
Firstly is there a typo, should it be
case connectionStatus
rather thancase ConnectionStatus
?Secondly when I console log each case I get back a numbers
0
then1
and then2
.Does
0
representconnectionStatus.Uninitialized
,1
representconnectionStatus.Connecting
,and
2
representconnectionStatus.Online
?Or am I doing something wrong/missing something?
Thanks
The text was updated successfully, but these errors were encountered: