API documentation of Agoric SDK / Exports / @agoric/network / types / Connection
Interface: Connection
@agoric/network.types.Connection
Table of contents
Properties
Properties
close
• close: () => PromiseVow
<void
>
Close both ends of the connection
Type declaration
▸ (): PromiseVow
<void
>
Returns
PromiseVow
<void
>
Defined in
packages/network/src/types.js:87
getLocalAddress
• getLocalAddress: () => string
Get the locally bound name of this connection
Type declaration
▸ (): string
Returns
string
Defined in
packages/network/src/types.js:88
getRemoteAddress
• getRemoteAddress: () => string
Get the name of the counterparty
Type declaration
▸ (): string
Returns
string
Defined in
packages/network/src/types.js:90
send
• send: (packetBytes
: string
, opts?
: Record
<string
, any
>) => PromiseVow
<string
>
Send a packet on the connection
Type declaration
▸ (packetBytes
, opts?
): PromiseVow
<string
>
Parameters
Name | Type |
---|---|
packetBytes | string |
opts? | Record <string , any > |
Returns
PromiseVow
<string
>