Skip to content

Type Method

serializePayload(_:)

Serialize a typed payload to an array of bytes. When Payload is Codable, this method will default to encoding to JSON.
static func serializePayload(_ payload: Self.Payload) throws -> [UInt8]

Parameters

payload

The payload to serialize.

Return Value

The array of serialized bytes.

Default Implementations

Job Implementations