encodeSuccessEnvelope method

  1. @override
ByteData encodeSuccessEnvelope (dynamic result)
override

Encodes a successful result into a binary envelope.

Implementation

@override
ByteData encodeSuccessEnvelope(dynamic result) {
  return const JSONMessageCodec().encodeMessage(<dynamic>[result]);
}