-
Notifications
You must be signed in to change notification settings - Fork 26
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
Connection resume does not fire channel detached #538
Comments
@ricardopereira whilst reviewing the verbose logs, I can unfortunately see that the client library does not output the URL it is connecting to for new WS connections. Can you please ensure all HTTP and WebSocket connections / requests output the complete URL with headers if appropriate when verbose logging is on? |
@ricardopereira unfortunately I also now suspect (but do not have proof as the logs are concatenated meaning I cannot prove this) that the resume following an auth token change is not working. I suspect the resume arguments for the WS connection are not included. Can you additionally write a test that uses a low value TTL for the token, attaches to a channel, then waits for the auth to complete renewing the token, and then publish over REST to that channel to make sure it's received? |
FYI, in the connected message following auth, I see:
If the resume failed, we should have received an error with the connected message with an So we need to check that:
|
@mattheworiordan Sorry for the delay. There's already a test for RTN15c3 but it's pending. |
@mattheworiordan I run that test and it passes. I will implement the additional test. |
Please test using UPDATE: the branch |
This has been tested by the customer and works. Thanks @ricardopereira |
@ricardopereira please can we write a test to confirm what happens to a channel when a connection resume fails. What should happen is that all channels that were attached become detached, the state change is emitted along with an error. Please see http://docs.ably.io/client-lib-development-guide/versions/v0.8/features/#RTN15c3 for 0.8 spec.
A customer has reported the detached event not firing.
The text was updated successfully, but these errors were encountered: