Closed samisagit closed 2 years ago
Parsers need to return the same type, so a new type has been created allowing a payload constructor for each option. This allows a generic handler to parse any NATS message and pattern match the resulting type.
Parsers need to return the same type, so a new type has been created allowing a payload constructor for each option. This allows a generic handler to parse any NATS message and pattern match the resulting type.