This MR adds a package containing ProtobufMessageAdapter which depends on Google Dart Protobuf package. You can use this to listen to Protobuf based GeneratedMessage type courier stream and publish generated message as bytes.
Simply pass this to message adapters list when initializing CourierClient like so
This MR adds a package containing
ProtobufMessageAdapter
which depends on Google DartProtobuf
package. You can use this to listen to Protobuf based GeneratedMessage type courier stream and publish generated message as bytes.Simply pass this to message adapters list when initializing
CourierClient
like soDecode bytes to Pet.pb GeneratedMessage:
Encode Pet GeneratedMessage pb to bytes: