While instantiating a Serializer we can pass a custom encoder as the last argument.
When present, a proto will be converted into an array using the custom function(encoder) supplied instead of the encodeMessage method in the Serializer class.
Essentially this provides a way to short-circuit the encodeMessage method.
While instantiating a Serializer we can pass a custom encoder as the last argument. When present, a proto will be converted into an array using the custom function(encoder) supplied instead of the
encodeMessage
method in theSerializer
class.Essentially this provides a way to short-circuit the
encodeMessage
method.