Closed aaumond closed 1 year ago
Looking into it. Thanks for identifying it @aaumond.
hello @pratikbaid3 , did you find a solution?
Hi @aaumond. I couldn't find time to get working on this just yet. Will hopefully fix this over the weekend. Thanks.
Hey @pratikbaid3 did you get a chance to look at this?
Hi @TomBeckett @aaumond. This issue is now fixed in the latest pre-release build https://pub.dev/packages/flutter_client_sse/versions/2.0.0-beta.1
Thanks and Regards
@pratikbaid3 this is still an issue on 2.0.0. I'm getting it after canceling the subscription. You need to close the streamController.close()
first before closing the client.
Hi @miguelpruivo . Can you share the logs if possible?
Hi @miguelpruivo . Can you share the logs if possible?
Hi, just by using:
SSEClient.unsubscribeFromSSE();
I always seem to get:
ClientException: Connection closed while receiving data
Hello @pratikbaid3,
If I subscribe on SSE webservice (via subscribeToSSE static method), then I unsubscribe (via unsubscribeFromSSE static method) and finally I re-subscribe, an error occured :
I think the problem comes from this line of code (line 35) because the subscription is not killed in unsubscribeFromSSE method :
response.asStream().listen()
Thanks in advance. Anthony