Skip to content
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

fix: handle attempt to send response when port is disconnected #56

Conversation

fellowseb
Copy link
Contributor

@fellowseb fellowseb commented Feb 26, 2024

Completes the "autoReconnect" feature by handling the response in case the channel went down (Disconnected) after receiving a message: if the channel has the autoReconnect capability we try to apply it. In any case if after trying the autoReconnect the channel is still Disconnected, we don't try to send the response.

I also added a hacky flushPromises testing utility that allows running all internal promises.

@fellowseb fellowseb force-pushed the fix/web-platform-948-attempting-to-use-disconnected-port branch 2 times, most recently from a302c2c to 956ab05 Compare February 26, 2024 13:40
@fellowseb fellowseb assigned fellowseb and unassigned a-coruble and remdash Feb 26, 2024
@fellowseb
Copy link
Contributor Author

Can merge after #58

@fellowseb fellowseb force-pushed the fix/web-platform-948-attempting-to-use-disconnected-port branch from 956ab05 to 3e0873f Compare February 28, 2024 15:36
@fellowseb fellowseb merged commit 3bb62a7 into Dashlane:master Feb 29, 2024
1 check passed
@fellowseb fellowseb deleted the fix/web-platform-948-attempting-to-use-disconnected-port branch February 29, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants