Skip to content

Question/Feature Request: Is There a Way to Use POST Method with useEventSource? #4

Open
@ehtishama

Description

@ehtishama

Hi there,

First of all, thank you for building this fantastic library!

I wanted to ask if there is a way to use the POST method with useEventSource? I’m working on a project where I need to send a payload to the server as part of the SSE connection, but as far as I know, the native EventSource API only supports GET requests. This is a bit limiting for my use case, as I need to send data through POST.

If the library doesn’t currently support POST requests, I’d like to suggest adding this feature. It would be incredibly useful to have the ability to specify the HTTP method (GET or POST) and include a request body when establishing the SSE connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions