Connection
@hyperledger/identus-sdk v8.0.0
@hyperledger/identus-sdk / overview / Connection
Interface: Connection
Defined in: packages/lib/sdk/src/edge-agent/connections/Connection.ts:9
Define the structure of a Connection
Connections are used to capture Protocol specific behaviours and metadata
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
close? | () => Promise<void> | handle any desired teardown | packages/lib/sdk/src/edge-agent/connections/Connection.ts:29 |
receive? | (protocol: any, ctx: any) => Promise<void> | called when a Message is received from this connection | packages/lib/sdk/src/edge-agent/connections/Connection.ts:25 |
send | (protocol: any, ctx: any) => Promise<any> | handle delivering a Message to the connected entity | packages/lib/sdk/src/edge-agent/connections/Connection.ts:21 |
state | State | current condition of the connection | packages/lib/sdk/src/edge-agent/connections/Connection.ts:17 |
uri | string | unique identifer for the connection | packages/lib/sdk/src/edge-agent/connections/Connection.ts:13 |