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().
2.0.0-dev.2 #
- Released with
ws2.0.0-dev.2, which it requires exactly. No changes to the library.
2.0.0-dev.1 #
- First release: the Rust transport for
ws2.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,
103skipped, 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.
LICENSEincludes the notices of the Rust crates in the libraries (shown by Flutter'sshowLicensePage).