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

Conform to spec changes at ably/docs#112. #441

Merged
merged 6 commits into from
Apr 27, 2016
Merged

Conform to spec changes at ably/docs#112. #441

merged 6 commits into from
Apr 27, 2016

Conversation

tcard
Copy link
Contributor

@tcard tcard commented Apr 27, 2016

This is required by #385. Note that ably/docs#112 is not merged yet.

Split in several commits for ease of consumption.

@ricardopereira
Copy link
Contributor

LGTM, now timeouts are way simple! Great one.

return;
}
case ARTRealtimeConnected:
[_pingEventEmitter timed:[_pingEventEmitter once:cb] deadline:10.0 onTimeout:^{
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@tcard tcard merged commit 4230222 into master Apr 27, 2016
@mattheworiordan mattheworiordan deleted the refactor-states branch April 27, 2016 23:31
@mattheworiordan
Copy link
Member

FYI, I've reviewed ably/docs#112 and had some comments. it is possible that we may need to revisit this after :(

@tcard
Copy link
Contributor Author

tcard commented Apr 28, 2016

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.

tcard added a commit that referenced this pull request May 16, 2016
* 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.
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