EventSourceClientX extension

An extension on the http packages Client that allows you to easily send SSE-requests.

on
  • Client

Methods

stream(Uri url, {Map<String, String>? headers, String? lastEventId, String verb = 'GET'}) Future<EventSource>

Available on Client, provided by the EventSourceClientX extension

Send a HTTP-request that results in a stream of ServerSentEvents in form of a EventSource.