Skip to main content

DIDCommConnection

@hyperledger/identus-sdk v7.0.0


@hyperledger/identus-sdk / plugins/internal/didcomm / DIDCommConnection

Class: DIDCommConnection

Defined in: src/plugins/internal/didcomm/connection/DIDCommConnection.ts:8

Define the structure of a Connection

Connections are used to capture Protocol specific behaviours and metadata

Extended by

Implements

Constructors

Constructor

new DIDCommConnection(uri: string, host: string, alias?: string): DIDCommConnection

Defined in: src/plugins/internal/didcomm/connection/DIDCommConnection.ts:12

Parameters

ParameterType
uristring
hoststring
alias?string

Returns

DIDCommConnection

Properties

PropertyModifierTypeDefault valueDescriptionDefined in
alias?readonlystringundefined-src/plugins/internal/didcomm/connection/DIDCommConnection.ts:15
hostreadonlystringundefined-src/plugins/internal/didcomm/connection/DIDCommConnection.ts:14
statepublicStateConnection.State.NEWcurrent condition of the connectionsrc/plugins/internal/didcomm/connection/DIDCommConnection.ts:10
typereadonly"DIDComm""DIDComm"-src/plugins/internal/didcomm/connection/DIDCommConnection.ts:9
urireadonlystringundefinedunique identifer for the connectionsrc/plugins/internal/didcomm/connection/DIDCommConnection.ts:13

Methods

receive()

receive(message: Message | undefined, ctx: AgentContext): Promise<any>

Defined in: src/plugins/internal/didcomm/connection/DIDCommConnection.ts:34

called when a Message is received from this connection

Parameters

ParameterType
messageMessage | undefined
ctxAgentContext

Returns

Promise<any>

Implementation of

Connection.receive


send()

send(msg: Message, ctx: AgentContext): Promise<any>

Defined in: src/plugins/internal/didcomm/connection/DIDCommConnection.ts:18

handle delivering a Message to the connected entity

Parameters

ParameterType
msgMessage
ctxAgentContext

Returns

Promise<any>

Implementation of

Connection.send