dart_ws_grpc 0.0.4 copy "dart_ws_grpc: ^0.0.4" to clipboard
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_grpc

This 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.4

Alternatively, 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';
1
likes
130
points
47
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A dart client for wsgrpc. Using Websocket as transport of grpc will make client stream and server stream call available for browser scripts.

Repository (GitLab)
View/report issues

License

MIT (license)

Dependencies

fixnum, flutter, grpc, protobuf

More

Packages that depend on dart_ws_grpc