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

Add read callback in connect function #25

Merged
merged 2 commits into from
Apr 16, 2023
Merged

Add read callback in connect function #25

merged 2 commits into from
Apr 16, 2023

Conversation

adam-fowler
Copy link
Member

This ensures the read callback is setup as soon as the connection is made, not when a successful promise is processed. It avoids missing any packets between the connection being made the the websocket future being completed.

This ensures the read callback is setup as soon as the connection is made, not when a successful promise is processed
@codecov
Copy link

codecov bot commented Apr 15, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.82 🎉

Comparison is base (283a0f5) 83.36% compared to head (22dd925) 84.19%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
+ Coverage   83.36%   84.19%   +0.82%     
==========================================
  Files           9        9              
  Lines         571      582      +11     
==========================================
+ Hits          476      490      +14     
+ Misses         95       92       -3     
Impacted Files Coverage Δ
Sources/HummingbirdWSClient/WebSocketClient.swift 89.91% <100.00%> (+3.80%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant