sse_channel 0.1.1 sse_channel: ^0.1.1 copied to clipboard
StreamChannel wrappers for Server Sent Events.
import 'package:sse_channel/sse_channel.dart';
void main() {
final channel =
SseChannel.connect(Uri.parse('http://127.0.0.1:8080/sseHandler'));
channel.stream.listen((message) {
print(message);
});
channel.sink.add('Test');
}