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
payloadThe payload to serialize.
Return Value
The array of serialized bytes.
Default Implementations
Job Implementations
serializePayload(_:)Default implementation forserializePayload(_:).