-
Notifications
You must be signed in to change notification settings - Fork 180
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
[Relay] Socket reconnection #601
Conversation
a431ce7
to
0434e31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good but this change definitely requires thorough manual testing
appStateObserver.currentState = .foreground | ||
XCTAssertTrue(webSocketSession.isConnected) | ||
webSocketSession.disconnect() | ||
sut.handleDisconnection() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this function be triggered automatically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's calling in Dispatcher. And here is only AutomaticSocketConnectionHandler tests
socket.disconnect() | ||
} | ||
|
||
private func reconnect() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reconnectIfNeeded() ?
Description
AutomaticConnectionHandler:
ManualConnectionHandler:
Resolves #576
Due Dilligence