sse_channel 0.0.2 copy "sse_channel: ^0.0.2" to clipboard
sse_channel: ^0.0.2 copied to clipboard

StreamChannel wrappers for Server Sent Events.

sse_channel #

The web_socket_channel package provides StreamChannel wrappers for WebSocket 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');
}
10
likes
0
pub points
87%
popularity

Publisher

verified publisherjamiewest.dev

StreamChannel wrappers for Server Sent Events.

Repository

License

unknown (license)

Dependencies

async, http, pool, sse, stream_channel, uuid

More

Packages that depend on sse_channel