stream abstract method
Creates a stream of ServerSentEvents from the given url
.
Internally, this will connect to the server and start receiving events. You should call SSEStream.listen immediatly on the returned stream to prevent data loss.
The stream is a single subscription stream and controls the connection to the server. To close it, simply cancel the subscription on the stream.
Implementation
Future<SSEStream> stream(Uri url);