feat: Adding support for SSE on the WebClient#2794
Conversation
a38c5e7 to
458fc76
Compare
vietj
left a comment
There was a problem hiding this comment.
we need for now
- at least 1 integration test with WebClient
- SseBodyCodec and tests should be in vertx-web-common package instead where BodyCodec is
4efdb3b to
fdd4b43
Compare
fdd4b43 to
2087406
Compare
|
@tsegismont maybe I could make the SseEvent toString to acutally create a 'valid'SSE string with the new lines |
b232c03 to
fddd3ac
Compare
tsegismont
left a comment
There was a problem hiding this comment.
Thank you @ehsavoie ! This looks great already. I think we need to make the new objects Vert.x API objects (annotated with @VertxGen or @DataObject).
Otherwise, they won't be available in generated bindings.
That might require a bit of refactoring, you can inspire from other codecs, like BodyCodec.
9274840 to
5164652
Compare
tsegismont
left a comment
There was a problem hiding this comment.
Thank you for the updates @ehsavoie !
tsegismont
left a comment
There was a problem hiding this comment.
Any reason for not moving the test from web-common to web-client?
|
@tsegismont I've move the test |
|
@ehsavoie can you please rebase the PR ? Thank you |
|
@tsegismont rebased |
tsegismont
left a comment
There was a problem hiding this comment.
Thank you @ehsavoie , there's just one modification that is no longer required. Can you please revert it? Then we're ready to merge
Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
|
@tsegismont everything should be ok now |
Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
Bckporting PR (vert-x3#2794) to 5.0.x Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
Bckporting PR (vert-x3#2794) to 5.0.x Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
Bckporting PR (#2794) to 5.0.x Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
Motivation:
I needed to be able to process SSE events on the client side.
Conformance:
You should have signed the Eclipse Contributor Agreement as explained in https://github.com/eclipse/vert.x/blob/master/CONTRIBUTING.md
Please also make sure you adhere to the code style guidelines: https://github.com/vert-x3/wiki/wiki/Vert.x-code-style-guidelines