microsoft / microsoft/BotFramework-DirectLineJS
networkInformation: Switching network type, then switching back again, results in RECONNECT_REJECTED
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 199
- Forks
- 133
- PR merge metrics
- No merged PRs in 30d
Description
Version: v0.15.5
Steps to reproduce:
- Within the networkInformation object, set the type to "wifi". Wait for connection to resume as expected.
- Within the networkInformation object, set the type to "cellular". Wait for connection to resume as expected.
- Within the networkInformation object, set the type to "wifi".
Then, Observe:
- After attempting a reconnection to "wifi" for the second time, a DIRECT_LINE/RECONNECT_REJECTED error is thrown, with a payload of:
Error: Failed to reconnect. DirectLineJS returned 4.\n at reconnectSaga$ - The webchat ui is disabled, while displaying an "Unable to Connect" error message.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the sequence in v0.15.5 by changing the networkInformation type from wifi to cellular and back to wifi. Start at the reconnectSaga$ location shown in the error and trace the network-type transition handling. Done means the second switch back to wifi reconnects without RECONNECT_REJECTED and the Web Chat UI does not become disabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100