Encode an event into a binary buffer
Binary buffer containing the encoded event
The type of event from the registry
The event data matching the schema
Optional custom registry (defaults to EventSchemas)
Encode an event into a binary buffer
Returns
Binary buffer containing the encoded event