Draft
Conversation
Collaborator
|
I think this can probably be entirely implemented in a call adapter with no changes to the core, but I'd have to try it. |
Author
|
We might have more than one adapter for SSE (for example RxJava & Kotlinx coroutines), so the basic definition like |
Collaborator
|
Call adapters can delegate to each other. They do not need to be in the core. |
f3ded01 to
3fc685e
Compare
Author
|
I planned to add a callback style for |
Author
|
@JakeWharton Please review current work of this for further change/improvement/completion. |
This was referenced Aug 12, 2025
297c7df to
03ef06e
Compare
Now it requires the default callback style adapter.
Author
|
Current usage: @Streaming
@GET
fun ktxFlow(): Flow<ServerSentEvent<String, String, String>>
@Streaming
@GET
fun jucFlow(): Flow.Publisher<ServerSentEvent<String, String, String>>
@Streaming
@GET
fun callback(): EventSource<String, String, String>The fields of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prototype (my demand):
Pending:
@SSEcan replace@GET)id,type,datafor exampleInt?forid, enum fortypeand JSONdata?java.util.concurrent.Flow(Java 9+) /java.util.stream.Stream(Java 8+) might be the integrated ones... ButStreamis not designed for tasks like this.These questions need to be answered before actual works.
closes #1029