Skip to main content

Connection

@hyperledger/identus-sdk v7.0.0


@hyperledger/identus-sdk / overview / Connection

Interface: Connection

Defined in: src/edge-agent/connections/Connection.ts:9

Define the structure of a Connection

Connections are used to capture Protocol specific behaviours and metadata

Properties

PropertyTypeDescriptionDefined in
close?() => Promise<void>handle any desired teardownsrc/edge-agent/connections/Connection.ts:29
receive?(protocol: any, ctx: any) => Promise<void>called when a Message is received from this connectionsrc/edge-agent/connections/Connection.ts:25
send(protocol: any, ctx: any) => Promise<any>handle delivering a Message to the connected entitysrc/edge-agent/connections/Connection.ts:21
stateStatecurrent condition of the connectionsrc/edge-agent/connections/Connection.ts:17
uristringunique identifer for the connectionsrc/edge-agent/connections/Connection.ts:13