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

Allow server to push content to the client #373

Open
Kaliumhexacyanoferrat opened this issue Mar 22, 2023 · 1 comment
Open

Allow server to push content to the client #373

Kaliumhexacyanoferrat opened this issue Mar 22, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

Kaliumhexacyanoferrat commented Mar 22, 2023

As a developer of client application processing server events, I would like to be able to easily stream data to the client, so that I can process the data on the client-side.

Example

[ResourceMethod(path: "test")]
public IHandlerBuilder Test(IRequest request)
{
    return Push.Create(async (stream) => {
         await steam.WriteAsync(...);    
    });
}

Acceptance criteria

  • The functionality is implemented in the IO module

Notes

See #309, #371.

Specc, see https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events

@Fiahblade
Copy link
Contributor

When I find the time I might take a look at this, no promises ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants