Skip to content

feat: Add ability to POST an SSE request #51

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Gao-Jun
Copy link

@Gao-Jun Gao-Jun commented Apr 3, 2025

Background

Recently, I'm working on an SSE client to Tencent LKE interface, which use a POST request and reply SSE AIGC content. ruby-eventsource is a good gem to handle SSE replies, but cannot send request via POST.

Solution

This PR add a new param payload to initialize method. Some behaviors will be changed if payload is set.

  1. Request will be sent via HTTP POST method with payload content
  2. Reconnection is disabled to avoid duplicated POST

@Gao-Jun Gao-Jun requested a review from a team as a code owner April 3, 2025 08:14
@Gao-Jun Gao-Jun changed the title Add ability to POST an SSE request feat: Add ability to POST an SSE request Apr 3, 2025
@keelerm84
Copy link
Member

Thank you for your interest and contribution. I do not have the capacity to review this PR quite yet, but I will get to it ASAP.

@aunghtain
Copy link

i need this feature as well. when will it get merged? Thanks

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

Successfully merging this pull request may close these issues.

3 participants