w_transport 3.2.0 w_transport: ^3.2.0 copied to clipboard
Transport library for sending HTTP requests and opening WebSockets. Platform-independent with builtin support for browser and Dart VM (even supports SockJS). Includes mock utilities for testing.
Examples #
There are 3 examples that demonstrate a wide range of use cases fulfilled by this library.
HTTP
WebSocket
You can use dart_dev to serve the examples and run the required server with:
pub run dart_dev examples
Then open http://localhost:9000 in Dartium or your browser of choice.