ConversationV2
public struct ConversationV2
Handles V2 Message conversations.
-
Undocumented
Declaration
Swift
public var topic: String
-
Undocumented
Declaration
Swift
public var keyMaterial: Data
-
Undocumented
Declaration
Swift
public var context: InvitationV1.Context
-
Undocumented
Declaration
Swift
public var peerAddress: String
-
Undocumented
Declaration
Swift
public var client: Client
-
Undocumented
Declaration
Swift
public init(topic: String, keyMaterial: Data, context: InvitationV1.Context, peerAddress: String, client: Client, createdAtNs: UInt64? = nil)
-
Undocumented
Declaration
Swift
public init(topic: String, keyMaterial: Data, context: InvitationV1.Context, peerAddress: String, client: Client, createdAtNs: UInt64? = nil, header: SealedInvitationHeaderV1)
-
Undocumented
Declaration
Swift
public var encodedContainer: ConversationV2Container { get }
-
Undocumented
Declaration
Swift
public func streamEphemeral() -> AsyncThrowingStream<Envelope, Error>
-
Undocumented
Declaration
Swift
public func streamMessages() -> AsyncThrowingStream<DecodedMessage, Error>
-
Undocumented
Declaration
Swift
public func streamDecryptedMessages() -> AsyncThrowingStream<DecryptedMessage, Error>
-
Undocumented
Declaration
Swift
public var createdAt: Date { get }
-
Undocumented
Declaration
Swift
public func decode(envelope: Envelope) throws -> DecodedMessage
-
encode(codec:
Asynchronouscontent: ) Undocumented
Declaration
Swift
public func encode<Codec, T>(codec: Codec, content: T) async throws -> Data where Codec : ContentCodec, T == Codec.T