-
Notifications
You must be signed in to change notification settings - Fork 27
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
Create a similar library for reactjs #50
Comments
Yes, this library is based purely on XMLHttpRequest, so it will work pretty much anywhere. However, EventSource should work out of the box in reactjs, so you shouldn't even need this library there. |
The eventSource in reactjs doesn't support POST. |
@meirm Why do you require POST request? |
You need POST request when you are using services such as OpenAI API in which you post the chat history (which is long) and get the results back as a stream. |
I took the source code of the eventSource.js and used it in a reactjs app and worked like a charm, so this library is not limited to react-native.
Great job.
The text was updated successfully, but these errors were encountered: