Skip to main content

ws_native 2.0.0-dev.1 copy "ws_native: ^2.0.0-dev.1" to clipboard
ws_native: ^2.0.0-dev.1 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().

2.0.0-dev.1 #

  • First release: the Rust transport for ws 2.0, with prebuilt libraries bundled through a build hook.
  • TLS: the system trust store (OS verifier on Apple and Windows), pins, user CAs on Android on request, disabled system CAs honoured.
  • The same closing, handshake and close-reason rules as the pure-Dart transport (FIN first, 103 skipped, strict response parsing).
  • abort() and the connect timeout work while the OS verifies a certificate (Apple, Windows). Large JSON documents no longer stall other connections; above 16 MiB they are decoded by Dart. A throwing listener no longer ends the isolate. Smaller library (−3 %).
  • An invalid close code from the server (999, 1005) is reported as a protocol violation (1002 sent by the client), not as the server closing with 1002.
  • LICENSE includes the notices of the Rust crates in the libraries (shown by Flutter's showLicensePage).
0
likes
0
points
--
downloads

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().

Repository (GitHub)
View/report issues

Topics

#websocket #ffi #rust #native-assets

License

unknown (license)

Dependencies

code_assets, crypto, hooks, meta, ws

More

Packages that depend on ws_native