Open pacjac opened 6 months ago
How should we handle cases where data is received from a source and the data contains information about the topic?
It seems to make sense that the unpack function should be responsible to extract that information or return None
if there is no topic information, in which case the subscriber will default to a topic value.
Currently, encoding / decoding is handled outside of the pack / unpack function. Encoding should be a part of the serializing procedure.