-
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
Conform to spec changes at ably/docs#112. #441
Conversation
LGTM, now timeouts are way simple! Great one. |
return; | ||
} | ||
case ARTRealtimeConnected: | ||
[_pingEventEmitter timed:[_pingEventEmitter once:cb] deadline:10.0 onTimeout:^{ |
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.
10s is the default timeout?
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 was hardcoded like that before. Fixed at 0aa8cb6.
FYI, I've reviewed ably/docs#112 and had some comments. it is possible that we may need to revisit this after :( |
Of course, I counted on that @mattheworiordan, but some parts of this were blocking other things and the refactor was nice anyway. Changing things should be easy now. |
* Add EventEmitter.timed method. * Use EventEmitter instead of manual timers for Realtime timeouts. This should simplify the logic there. * Improve error reporting of Obj-C enum in tests. * Conform to spec changes at ably/docs#112. * Remove outdated test. * Replace hardcoded realtime request timeout.
This is required by #385. Note that ably/docs#112 is not merged yet.
Split in several commits for ease of consumption.