sse_handler 0.0.1 copy "sse_handler: ^0.0.1" to clipboard
sse_handler: ^0.0.1 copied to clipboard

Platformweb

StreamChannel wrappers for Server Sent Events.

sse_channel #

The sse_channel package provides StreamChannel wrappers for Server Sent Event connections.

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');
}
0
likes
150
pub points
25%
popularity

Publisher

unverified uploader

StreamChannel wrappers for Server Sent Events.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

async, http, pool, sse, stream_channel, uuid

More

Packages that depend on sse_handler