ws_native 2.0.0-dev.2
ws_native: ^2.0.0-dev.2 copied to clipboard
Native (Rust) transport for the ws WebSocket client: TLS, framing and JSON parsing off the Dart thread. Install it with WsNative.install().
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add ws_nativeWith Flutter:
$ flutter pub add ws_nativeThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
ws_native: ^2.0.0-dev.2Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:ws_native/ws_native.dart';