Skip to main content

ws_native 2.0.0-dev.2 copy "ws_native: ^2.0.0-dev.2" to clipboard
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_native

With Flutter:

 $ flutter pub add ws_native

This 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.2

Alternatively, 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';
0
likes
150
points
--
downloads

Documentation

API reference

Publisher

verified publisherplugfox.dev

Weekly Downloads

Native (Rust) transport for the ws WebSocket client: TLS, framing and JSON parsing off the Dart thread. Install it with WsNative.install().

Topics

#websocket #ffi #rust #native-assets

License

MIT, Unicode-3.0, Zlib (license)

Dependencies

code_assets, crypto, hooks, meta, ws

More

Packages that depend on ws_native