pratikbaid3 / flutter_client_sse

Dart package to help consume SSE API. Consumes server sent events by returning parsed model of the event, id, and the data
https://pub.dev/packages/flutter_client_sse
MIT License
40 stars 41 forks source link

http post not working #8

Closed glennmichaelmejias closed 1 year ago

glennmichaelmejias commented 1 year ago

why http post cant work? i cant receive request even i do print log on the server

pratikbaid3 commented 1 year ago

Hi. The current implementation of the service only caters to subscription of events through get.

Ill add the post instance as a enhancement.

Thanks

pratikbaid3 commented 1 year ago

Are you planning on sending a body with the subscription? @glennmichaelmejias

glennmichaelmejias commented 1 year ago

yes, and also using post so that it will be more secured.

glennmichaelmejias commented 1 year ago

why there is regexp from your code? i am using this with openai chatgpt stream.

pratikbaid3 commented 1 year ago

Hi @glennmichaelmejias. Http POST can now be used in the latest pre-release build of the package. https://pub.dev/packages/flutter_client_sse/versions/2.0.0-beta.1

Thanks and Regards