interface EventClientCodec
Convert EventicleEvent to/ from EncodedEvent.
EncodedEvent is suitable for the EventClient implementations to send on the wire, as it is a Buffer and a set of message headers.
Properties
encode
Convert a raw event binary (as a EncodedEvent) into a EventicleEvent
Signature
encode: (event: EventicleEvent) => Promise<EncodedEvent>;