Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFinish up the implementation of EventSource #13774
Conversation
highfive
commented
Oct 14, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Oct 14, 2016
|
@bors-servo try |
|
|
|
I believe there's still too many timeouts in EventSource and it's not worthwhile to enable it just yet. |
650383d
to
c81ef97
1446403
to
555d576
|
r? @frewsxcv |
|
| #[derive(JSTraceable, PartialEq, Copy, Clone, Debug, HeapSizeOf)] | ||
| enum EventSourceReadyState { | ||
| enum ReadyState { |
This comment has been minimized.
This comment has been minimized.
frewsxcv
Oct 17, 2016
•
Member
Can you add a comment here?
// https://html.spec.whatwg.org/multipage/#dom-eventsource-readystate|
I can look through this, though I don't have much time over the next few days to do an in-depth review of this. Might be better to find someone else for the r+. Is it true that there are not test expectation differences or have they not been updated? |
|
@frewsxcv They haven't been updated yet, since I'm not entirely sure that it's worth enabling the tests again due to the amount of expected timeouts in the tests. |
|
Considering websockets will be partially supported after this PR, would it make sense to enable them? |
|
How are websockets related to EventSource? We already support websockets in Servo. |
|
Blah, my bad, I was thinking "SSE" but said "websockets". |
|
@bors-servo try |
Implement EventSource constructor, parse metadata in EventSource response It still doesn't parse the event stream correctly, but it does announce and fail the connection correctly. Re-establishing the connection is not supported yet. Partial #8925. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13774) <!-- Reviewable:end -->
|
|
555d576
to
d6bfc10
|
|
a64cdd7
to
7a9097f
|
Crap, something went wrong during rebase, will fix soon. |
|
|
7a9097f
to
501175d
501175d
to
4018b4b
4018b4b
to
a39d1fa
|
@bors-servo: r+ |
|
|
Finish up the implementation of EventSource Full implementation of EventSource, complete with closing and reopening streams. Fixes #8925. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13774) <!-- Reviewable:end -->
|
|
KiChjang commentedOct 14, 2016
•
edited
Full implementation of EventSource, complete with closing and reopening streams.
Fixes #8925.
This change is