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.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add w_transport
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
w_transport: ^3.2.0
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:w_transport/w_transport.dart';