connectrpc 0.4.1 copy "connectrpc: ^0.4.1" to clipboard
connectrpc: ^0.4.1 copied to clipboard

Implementation of the Connect protocol for Dart. Simple, reliable, interoperable. Protobuf RPC that works

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate connectrpc

Use it

The package has the following executables:

$ protoc-gen-connect-dart

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add connectrpc

With Flutter:

 $ flutter pub add connectrpc

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  connectrpc: ^0.4.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:connectrpc/connect.dart';
import 'package:connectrpc/http2.dart';
import 'package:connectrpc/io.dart';
import 'package:connectrpc/protobuf.dart';
import 'package:connectrpc/protocol/connect.dart';
import 'package:connectrpc/protocol/grpc.dart';
import 'package:connectrpc/protocol/grpc_web.dart';
import 'package:connectrpc/test.dart';
import 'package:connectrpc/web.dart';
10
likes
150
points
5.74k
downloads

Publisher

verified publisherconnectrpc.com

Weekly Downloads

Implementation of the Connect protocol for Dart. Simple, reliable, interoperable. Protobuf RPC that works

Homepage
Repository (GitHub)

Documentation

Documentation
API reference

License

Apache-2.0 (license)

Dependencies

fixnum, http2, path, protobuf

More

Packages that depend on connectrpc