dart_ws_grpc 0.0.4
dart_ws_grpc: ^0.0.4 copied to clipboard
A dart client for wsgrpc. Using Websocket as transport of grpc will make client stream and server stream call available for browser scripts.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add dart_ws_grpcThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
dart_ws_grpc: ^0.0.4Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dart_ws_grpc/api/ws/proto/ws.pb.dart';
import 'package:dart_ws_grpc/api/ws/proto/ws.pbenum.dart';
import 'package:dart_ws_grpc/api/ws/proto/ws.pbgrpc.dart';
import 'package:dart_ws_grpc/api/ws/proto/ws.pbjson.dart';
import 'package:dart_ws_grpc/grpc_streaming.dart';