API documentation of Agoric SDK / Exports / @agoric/network / types
Module: types
Table of contents
Interfaces
- AttemptDescription
- Closable
- Connection
- ConnectionHandler
- InboundAttempt
- ListenHandler
- Port
- Protocol
- ProtocolHandler
- ProtocolImpl
Type Aliases
Type Aliases
Bytes
Ƭ Bytes: string
Each character code carries 8-bit octets. Eventually we want to use passable Uint8Arrays.
Defined in
packages/network/src/types.js:21
CloseReason
Ƭ CloseReason: any | null
The reason a connection was closed
Defined in
packages/network/src/types.js:116
Endpoint
Ƭ Endpoint: string
A local or remote address See multiaddr.js for an opinionated router implementation
Defined in
packages/network/src/types.js:25
ExoClassMethods
Ƭ ExoClassMethods<M, I>: M & ThisType<{ self: Guarded ; state: ReturnType<I> }>
Rearrange the exo types to make a cast of the methods (M) and init function (I) to a specific type.
Type parameters
| Name | Type |
|---|---|
M | extends Methods |
I | extends (...args: any[]) => any |
Defined in
packages/network/src/types.js:16
PromiseVow
Ƭ PromiseVow<T>: Promise<T | Vow<T>>
Return type of a function that may return a promise or a vow.
Type parameters
| Name |
|---|
T |
Defined in
Remote
Ƭ Remote<T>: Remote
Type parameters
| Name |
|---|
T |