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
| Property | Type | Description | Defined in | 
|---|---|---|---|
| close? | () => Promise<void> | handle any desired teardown | src/edge-agent/connections/Connection.ts:29 | 
| receive? | ( protocol:any,ctx:any) =>Promise<void> | called when a Message is received from this connection | src/edge-agent/connections/Connection.ts:25 | 
| send | ( protocol:any,ctx:any) =>Promise<any> | handle delivering a Message to the connected entity | src/edge-agent/connections/Connection.ts:21 | 
| state | State | current condition of the connection | src/edge-agent/connections/Connection.ts:17 | 
| uri | string | unique identifer for the connection | src/edge-agent/connections/Connection.ts:13 |