web_socket_channel_connect 1.0.2+2 copy "web_socket_channel_connect: ^1.0.2+2" to clipboard
web_socket_channel_connect: ^1.0.2+2 copied to clipboard

discontinuedreplaced by: web_socket_channel

A wrapper to connect websockets for the web_socket_channel package that gives an error on failure.

web_socket_channel_connect #

Table of Contents

Introduction #

A small wrapper for the web_socket_channel package that throws a synchronous error if the connection fails.

This addresses the following open issues on the web_socket_channel package:

Usage #

import 'package:web_socket_channel_connect/web_socket_channel_connect.dart';

Future<void> main() async {
  final channel = connectWebSocket(Uri.parse('ws:localhost:5333'));

  channel.stream.listen((message) {});
}
5
likes
0
pub points
37%
popularity

Publisher

unverified uploader

A wrapper to connect websockets for the web_socket_channel package that gives an error on failure.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

web_socket_channel

More

Packages that depend on web_socket_channel_connect