@libp2p/interface 2.11.0-8484de8a2 → 2.11.0-87bc8d4fb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +4 -4
- package/dist/src/connection-encrypter.d.ts +15 -17
- package/dist/src/connection-encrypter.d.ts.map +1 -1
- package/dist/src/connection-gater.d.ts +2 -1
- package/dist/src/connection-gater.d.ts.map +1 -1
- package/dist/src/connection.d.ts +233 -36
- package/dist/src/connection.d.ts.map +1 -1
- package/dist/src/connection.js.map +1 -1
- package/dist/src/errors.d.ts +0 -32
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +0 -44
- package/dist/src/errors.js.map +1 -1
- package/dist/src/index.d.ts +3 -9
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -7
- package/dist/src/index.js.map +1 -1
- package/dist/src/metrics.d.ts +2 -2
- package/dist/src/metrics.d.ts.map +1 -1
- package/dist/src/pubsub.d.ts +3 -1
- package/dist/src/pubsub.d.ts.map +1 -1
- package/dist/src/pubsub.js.map +1 -1
- package/dist/src/stream-handler.d.ts +13 -2
- package/dist/src/stream-handler.d.ts.map +1 -1
- package/dist/src/stream-muxer.d.ts +30 -113
- package/dist/src/stream-muxer.d.ts.map +1 -1
- package/dist/src/topology.d.ts +2 -2
- package/dist/src/topology.d.ts.map +1 -1
- package/dist/src/transport.d.ts +13 -20
- package/dist/src/transport.d.ts.map +1 -1
- package/dist/src/transport.js.map +1 -1
- package/package.json +5 -4
- package/src/connection-encrypter.ts +16 -19
- package/src/connection-gater.ts +2 -1
- package/src/connection.ts +270 -38
- package/src/errors.ts +0 -52
- package/src/index.ts +3 -10
- package/src/metrics.ts +2 -2
- package/src/pubsub.ts +3 -1
- package/src/stream-handler.ts +15 -2
- package/src/stream-muxer.ts +30 -122
- package/src/topology.ts +2 -2
- package/src/transport.ts +14 -25
- package/dist/src/connection-protector.d.ts +0 -9
- package/dist/src/connection-protector.d.ts.map +0 -1
- package/dist/src/connection-protector.js +0 -2
- package/dist/src/connection-protector.js.map +0 -1
- package/dist/src/events.d.ts +0 -26
- package/dist/src/events.d.ts.map +0 -1
- package/dist/src/events.js +0 -36
- package/dist/src/events.js.map +0 -1
- package/dist/src/message-stream.d.ts +0 -145
- package/dist/src/message-stream.d.ts.map +0 -1
- package/dist/src/message-stream.js +0 -2
- package/dist/src/message-stream.js.map +0 -1
- package/dist/src/multiaddr-connection.d.ts +0 -25
- package/dist/src/multiaddr-connection.d.ts.map +0 -1
- package/dist/src/multiaddr-connection.js +0 -2
- package/dist/src/multiaddr-connection.js.map +0 -1
- package/dist/src/stream.d.ts +0 -63
- package/dist/src/stream.d.ts.map +0 -1
- package/dist/src/stream.js +0 -2
- package/dist/src/stream.js.map +0 -1
- package/src/connection-protector.ts +0 -9
- package/src/events.ts +0 -44
- package/src/message-stream.ts +0 -168
- package/src/multiaddr-connection.ts +0 -27
- package/src/stream.ts +0 -70
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MultiaddrConnection } from './connection.js';
|
|
2
|
+
import type { AbortOptions, Logger, StreamMuxerFactory } from './index.js';
|
|
3
|
+
import type { PeerId } from './peer-id.js';
|
|
4
|
+
import type { Duplex } from 'it-stream-types';
|
|
5
|
+
import type { Uint8ArrayList } from 'uint8arraylist';
|
|
2
6
|
/**
|
|
3
7
|
* If the remote PeerId is known and passed as an option, the securing operation
|
|
4
8
|
* will throw if the remote peer cannot prove it has the private key that
|
|
5
9
|
* corresponds to the public key the remote PeerId is derived from.
|
|
6
10
|
*/
|
|
7
11
|
export interface SecureConnectionOptions extends AbortOptions {
|
|
8
|
-
/**
|
|
9
|
-
* This will be set if the remote peer is known in advance
|
|
10
|
-
*/
|
|
11
12
|
remotePeer?: PeerId;
|
|
12
13
|
/**
|
|
13
14
|
* Some encryption protocols allow negotiating application protocols as part
|
|
@@ -17,6 +18,12 @@ export interface SecureConnectionOptions extends AbortOptions {
|
|
|
17
18
|
*/
|
|
18
19
|
skipStreamMuxerNegotiation?: boolean;
|
|
19
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* A stream with an optional logger
|
|
23
|
+
*/
|
|
24
|
+
export interface SecurableStream extends Duplex<AsyncGenerator<Uint8Array | Uint8ArrayList>> {
|
|
25
|
+
log?: Logger;
|
|
26
|
+
}
|
|
20
27
|
/**
|
|
21
28
|
* A libp2p connection encrypter module must be compliant to this interface
|
|
22
29
|
* to ensure all exchanged data between two peers is encrypted.
|
|
@@ -28,26 +35,17 @@ export interface ConnectionEncrypter<Extension = unknown> {
|
|
|
28
35
|
* pass it for extra verification, otherwise it will be determined during
|
|
29
36
|
* the handshake.
|
|
30
37
|
*/
|
|
31
|
-
secureOutbound(connection:
|
|
38
|
+
secureOutbound<Stream extends SecurableStream = MultiaddrConnection>(connection: Stream, options?: SecureConnectionOptions): Promise<SecuredConnection<Stream, Extension>>;
|
|
32
39
|
/**
|
|
33
40
|
* Decrypt incoming data. If the remote PeerId is known,
|
|
34
41
|
* pass it for extra verification, otherwise it will be determined during
|
|
35
42
|
* the handshake
|
|
36
43
|
*/
|
|
37
|
-
secureInbound(connection:
|
|
44
|
+
secureInbound<Stream extends SecurableStream = MultiaddrConnection>(connection: Stream, options?: SecureConnectionOptions): Promise<SecuredConnection<Stream, Extension>>;
|
|
38
45
|
}
|
|
39
|
-
export interface SecuredConnection<Extension = unknown> {
|
|
40
|
-
|
|
41
|
-
* The decrypted data stream
|
|
42
|
-
*/
|
|
43
|
-
connection: MessageStream;
|
|
44
|
-
/**
|
|
45
|
-
* Any extension data transferred as part of the encryption handshake
|
|
46
|
-
*/
|
|
46
|
+
export interface SecuredConnection<Stream = any, Extension = unknown> {
|
|
47
|
+
conn: Stream;
|
|
47
48
|
remoteExtensions?: Extension;
|
|
48
|
-
/**
|
|
49
|
-
* The identifier of the remote peer
|
|
50
|
-
*/
|
|
51
49
|
remotePeer: PeerId;
|
|
52
50
|
/**
|
|
53
51
|
* Some encryption protocols allow negotiating application protocols as part
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-encrypter.d.ts","sourceRoot":"","sources":["../../src/connection-encrypter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"connection-encrypter.d.ts","sourceRoot":"","sources":["../../src/connection-encrypter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;GAIG;AACH,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAA;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,cAAc,CAAC,UAAU,GAAG,cAAc,CAAC,CAAC;IAC1F,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB,CAAC,SAAS,GAAG,OAAO;IACtD,QAAQ,EAAE,MAAM,CAAA;IAEhB;;;;OAIG;IACH,cAAc,CAAE,MAAM,SAAS,eAAe,GAAG,mBAAmB,EAAG,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAA;IAE5K;;;;OAIG;IACH,aAAa,CAAE,MAAM,SAAS,eAAe,GAAG,mBAAmB,EAAG,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAA;CAC5K;AAED,MAAM,WAAW,iBAAiB,CAAC,MAAM,GAAG,GAAG,EAAE,SAAS,GAAG,OAAO;IAClE,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAA;CACjC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { MultiaddrConnection
|
|
1
|
+
import type { MultiaddrConnection } from './connection.js';
|
|
2
|
+
import type { PeerId } from './peer-id.js';
|
|
2
3
|
import type { Multiaddr } from '@multiformats/multiaddr';
|
|
3
4
|
export interface ConnectionGater {
|
|
4
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-gater.d.ts","sourceRoot":"","sources":["../../src/connection-gater.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"connection-gater.d.ts","sourceRoot":"","sources":["../../src/connection-gater.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,MAAM,WAAW,eAAe;IAC9B;;;;;;;;OAQG;IACH,YAAY,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAA;IAEzD;;;;;;;;OAQG;IACH,iBAAiB,CAAC,CAAC,SAAS,EAAE,SAAS,GAAG,OAA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F;;;;OAIG;IACH,sBAAsB,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAA;CACxF"}
|
package/dist/src/connection.d.ts
CHANGED
|
@@ -1,26 +1,153 @@
|
|
|
1
|
-
import type { AbortOptions, Logger
|
|
1
|
+
import type { AbortOptions, Logger } from './index.js';
|
|
2
|
+
import type { PeerId } from './peer-id.js';
|
|
2
3
|
import type { Multiaddr } from '@multiformats/multiaddr';
|
|
3
|
-
|
|
4
|
+
import type { Duplex, Source } from 'it-stream-types';
|
|
5
|
+
import type { Uint8ArrayList } from 'uint8arraylist';
|
|
6
|
+
export interface ConnectionTimeline {
|
|
7
|
+
/**
|
|
8
|
+
* When the connection was opened
|
|
9
|
+
*/
|
|
10
|
+
open: number;
|
|
11
|
+
/**
|
|
12
|
+
* When the MultiaddrConnection was upgraded to a Connection - e.g. the type
|
|
13
|
+
* of connection encryption and multiplexing was negotiated.
|
|
14
|
+
*/
|
|
15
|
+
upgraded?: number;
|
|
16
|
+
/**
|
|
17
|
+
* When the connection was closed.
|
|
18
|
+
*/
|
|
19
|
+
close?: number;
|
|
20
|
+
}
|
|
4
21
|
/**
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
|
|
22
|
+
* Outbound connections are opened by the local node, inbound streams are opened by the remote
|
|
23
|
+
*/
|
|
24
|
+
export type Direction = 'inbound' | 'outbound';
|
|
25
|
+
export interface StreamTimeline {
|
|
26
|
+
/**
|
|
27
|
+
* A timestamp of when the stream was opened
|
|
28
|
+
*/
|
|
29
|
+
open: number;
|
|
30
|
+
/**
|
|
31
|
+
* A timestamp of when the stream was closed for both reading and writing
|
|
32
|
+
*/
|
|
33
|
+
close?: number;
|
|
34
|
+
/**
|
|
35
|
+
* A timestamp of when the stream was closed for reading
|
|
36
|
+
*/
|
|
37
|
+
closeRead?: number;
|
|
38
|
+
/**
|
|
39
|
+
* A timestamp of when the stream was closed for writing
|
|
40
|
+
*/
|
|
41
|
+
closeWrite?: number;
|
|
42
|
+
/**
|
|
43
|
+
* A timestamp of when the stream was reset
|
|
44
|
+
*/
|
|
45
|
+
reset?: number;
|
|
46
|
+
/**
|
|
47
|
+
* A timestamp of when the stream was aborted
|
|
48
|
+
*/
|
|
49
|
+
abort?: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* The states a stream can be in
|
|
53
|
+
*/
|
|
54
|
+
export type StreamStatus = 'open' | 'closing' | 'closed' | 'aborted' | 'reset';
|
|
55
|
+
/**
|
|
56
|
+
* The states the readable end of a stream can be in
|
|
8
57
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
58
|
+
* ready - the readable end is ready for reading
|
|
59
|
+
* closing - the readable end is closing
|
|
60
|
+
* closed - the readable end has closed
|
|
12
61
|
*/
|
|
13
|
-
export
|
|
62
|
+
export type ReadStatus = 'ready' | 'closing' | 'closed';
|
|
63
|
+
/**
|
|
64
|
+
* The states the writable end of a stream can be in
|
|
65
|
+
*
|
|
66
|
+
* ready - the writable end is ready for writing
|
|
67
|
+
* writing - the writable end is in the process of being written to
|
|
68
|
+
* done - the source passed to the `.sink` function yielded all values without error
|
|
69
|
+
* closing - the writable end is closing
|
|
70
|
+
* closed - the writable end has closed
|
|
71
|
+
*/
|
|
72
|
+
export type WriteStatus = 'ready' | 'writing' | 'done' | 'closing' | 'closed';
|
|
73
|
+
/**
|
|
74
|
+
* A Stream is a data channel between two peers that
|
|
75
|
+
* can be written to and read from at both ends.
|
|
76
|
+
*
|
|
77
|
+
* It may be encrypted and multiplexed depending on the
|
|
78
|
+
* configuration of the nodes.
|
|
79
|
+
*/
|
|
80
|
+
export interface Stream extends Duplex<AsyncGenerator<Uint8ArrayList>, Source<Uint8ArrayList | Uint8Array>, Promise<void>> {
|
|
14
81
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
82
|
+
* Closes the stream for **reading** *and* **writing**.
|
|
83
|
+
*
|
|
84
|
+
* Any buffered data in the source can still be consumed and the stream will end normally.
|
|
85
|
+
*
|
|
86
|
+
* This will cause a `CLOSE` message to be sent to the remote, *unless* the sink has already ended.
|
|
87
|
+
*
|
|
88
|
+
* The sink and the source will return normally.
|
|
17
89
|
*/
|
|
18
|
-
|
|
90
|
+
close(options?: AbortOptions): Promise<void>;
|
|
19
91
|
/**
|
|
20
|
-
* If
|
|
21
|
-
*
|
|
92
|
+
* Closes the stream for **reading**. If iterating over the source of this stream in a `for await of` loop, it will return (exit the loop) after any buffered data has been consumed.
|
|
93
|
+
*
|
|
94
|
+
* This function is called automatically by the muxer when it receives a `CLOSE` message from the remote.
|
|
95
|
+
*
|
|
96
|
+
* The source will return normally, the sink will continue to consume.
|
|
22
97
|
*/
|
|
23
|
-
|
|
98
|
+
closeRead(options?: AbortOptions): Promise<void>;
|
|
99
|
+
/**
|
|
100
|
+
* Closes the stream for **writing**. If iterating over the source of this stream in a `for await of` loop, it will return (exit the loop) after any buffered data has been consumed.
|
|
101
|
+
*
|
|
102
|
+
* The source will return normally, the sink will continue to consume.
|
|
103
|
+
*/
|
|
104
|
+
closeWrite(options?: AbortOptions): Promise<void>;
|
|
105
|
+
/**
|
|
106
|
+
* Closes the stream for **reading** *and* **writing**. This should be called when a *local error* has occurred.
|
|
107
|
+
*
|
|
108
|
+
* Note, if called without an error any buffered data in the source can still be consumed and the stream will end normally.
|
|
109
|
+
*
|
|
110
|
+
* This will cause a `RESET` message to be sent to the remote, *unless* the sink has already ended.
|
|
111
|
+
*
|
|
112
|
+
* The sink will return and the source will throw.
|
|
113
|
+
*/
|
|
114
|
+
abort(err: Error): void;
|
|
115
|
+
/**
|
|
116
|
+
* Unique identifier for a stream. Identifiers are not unique across muxers.
|
|
117
|
+
*/
|
|
118
|
+
id: string;
|
|
119
|
+
/**
|
|
120
|
+
* Outbound streams are opened by the local node, inbound streams are opened by the remote
|
|
121
|
+
*/
|
|
122
|
+
direction: Direction;
|
|
123
|
+
/**
|
|
124
|
+
* Lifecycle times for the stream
|
|
125
|
+
*/
|
|
126
|
+
timeline: StreamTimeline;
|
|
127
|
+
/**
|
|
128
|
+
* The protocol negotiated for this stream
|
|
129
|
+
*/
|
|
130
|
+
protocol?: string;
|
|
131
|
+
/**
|
|
132
|
+
* User defined stream metadata
|
|
133
|
+
*/
|
|
134
|
+
metadata: Record<string, any>;
|
|
135
|
+
/**
|
|
136
|
+
* The current status of the stream
|
|
137
|
+
*/
|
|
138
|
+
status: StreamStatus;
|
|
139
|
+
/**
|
|
140
|
+
* The current status of the readable end of the stream
|
|
141
|
+
*/
|
|
142
|
+
readStatus: ReadStatus;
|
|
143
|
+
/**
|
|
144
|
+
* The current status of the writable end of the stream
|
|
145
|
+
*/
|
|
146
|
+
writeStatus: WriteStatus;
|
|
147
|
+
/**
|
|
148
|
+
* The stream logger
|
|
149
|
+
*/
|
|
150
|
+
log: Logger;
|
|
24
151
|
}
|
|
25
152
|
export interface NewStreamOptions extends AbortOptions {
|
|
26
153
|
/**
|
|
@@ -31,11 +158,10 @@ export interface NewStreamOptions extends AbortOptions {
|
|
|
31
158
|
maxOutboundStreams?: number;
|
|
32
159
|
/**
|
|
33
160
|
* Opt-in to running over a limited connection - one that has restrictions
|
|
34
|
-
* on the amount of data that may be transferred or how long it may be open
|
|
35
|
-
* for.
|
|
161
|
+
* on the amount of data that may be transferred or how long it may be open for.
|
|
36
162
|
*
|
|
37
|
-
* These limits are typically enforced by a relay server, if the protocol
|
|
38
|
-
* be transferring a lot of data or the stream will be open for a long time
|
|
163
|
+
* These limits are typically enforced by a relay server, if the protocol
|
|
164
|
+
* will be transferring a lot of data or the stream will be open for a long time
|
|
39
165
|
* consider upgrading to a direct connection before opening the stream.
|
|
40
166
|
*
|
|
41
167
|
* @default false
|
|
@@ -68,13 +194,35 @@ export interface NewStreamOptions extends AbortOptions {
|
|
|
68
194
|
*/
|
|
69
195
|
negotiateFully?: boolean;
|
|
70
196
|
}
|
|
197
|
+
export type ConnectionStatus = 'open' | 'closing' | 'closed';
|
|
198
|
+
/**
|
|
199
|
+
* Connection limits are present on connections that are only allowed to
|
|
200
|
+
* transfer a certain amount of bytes or be open for a certain number
|
|
201
|
+
* of seconds.
|
|
202
|
+
*
|
|
203
|
+
* These limits are applied by Circuit Relay v2 servers, for example and
|
|
204
|
+
* the connection will normally be closed abruptly if the limits are
|
|
205
|
+
* exceeded.
|
|
206
|
+
*/
|
|
207
|
+
export interface ConnectionLimits {
|
|
208
|
+
/**
|
|
209
|
+
* If present this is the number of bytes remaining that may be
|
|
210
|
+
* transferred over this connection
|
|
211
|
+
*/
|
|
212
|
+
bytes?: bigint;
|
|
213
|
+
/**
|
|
214
|
+
* If present this is the number of seconds that this connection will
|
|
215
|
+
* remain open for
|
|
216
|
+
*/
|
|
217
|
+
seconds?: number;
|
|
218
|
+
}
|
|
71
219
|
/**
|
|
72
220
|
* A Connection is a high-level representation of a connection
|
|
73
221
|
* to a remote peer that may have been secured by encryption and
|
|
74
222
|
* multiplexed, depending on the configuration of the nodes
|
|
75
223
|
* between which the connection is made.
|
|
76
224
|
*/
|
|
77
|
-
export interface Connection
|
|
225
|
+
export interface Connection {
|
|
78
226
|
/**
|
|
79
227
|
* The unique identifier for this connection
|
|
80
228
|
*/
|
|
@@ -87,6 +235,10 @@ export interface Connection extends TypedEventTarget<Omit<MessageStreamEvents, '
|
|
|
87
235
|
* The id of the peer at the remote end of the connection
|
|
88
236
|
*/
|
|
89
237
|
remotePeer: PeerId;
|
|
238
|
+
/**
|
|
239
|
+
* A list of tags applied to this connection
|
|
240
|
+
*/
|
|
241
|
+
tags: string[];
|
|
90
242
|
/**
|
|
91
243
|
* A list of open streams on this connection
|
|
92
244
|
*/
|
|
@@ -94,11 +246,11 @@ export interface Connection extends TypedEventTarget<Omit<MessageStreamEvents, '
|
|
|
94
246
|
/**
|
|
95
247
|
* Outbound connections are opened by the local node, inbound streams are opened by the remote
|
|
96
248
|
*/
|
|
97
|
-
direction:
|
|
249
|
+
direction: Direction;
|
|
98
250
|
/**
|
|
99
|
-
*
|
|
251
|
+
* Lifecycle times for the connection
|
|
100
252
|
*/
|
|
101
|
-
timeline:
|
|
253
|
+
timeline: ConnectionTimeline;
|
|
102
254
|
/**
|
|
103
255
|
* The multiplexer negotiated for this connection
|
|
104
256
|
*/
|
|
@@ -111,10 +263,6 @@ export interface Connection extends TypedEventTarget<Omit<MessageStreamEvents, '
|
|
|
111
263
|
* The current status of the connection
|
|
112
264
|
*/
|
|
113
265
|
status: ConnectionStatus;
|
|
114
|
-
/**
|
|
115
|
-
* Whether this connection is direct or, for example, is via a relay
|
|
116
|
-
*/
|
|
117
|
-
direct: boolean;
|
|
118
266
|
/**
|
|
119
267
|
* If present, this connection has limits applied to it, perhaps by an
|
|
120
268
|
* intermediate relay. Once the limits have been reached the connection will
|
|
@@ -127,26 +275,75 @@ export interface Connection extends TypedEventTarget<Omit<MessageStreamEvents, '
|
|
|
127
275
|
* This is updated periodically by the connection monitor.
|
|
128
276
|
*/
|
|
129
277
|
rtt?: number;
|
|
130
|
-
/**
|
|
131
|
-
* The connection logger, used to log connection-specific information
|
|
132
|
-
*/
|
|
133
|
-
log: Logger;
|
|
134
278
|
/**
|
|
135
279
|
* Create a new stream on this connection and negotiate one of the passed protocols
|
|
136
280
|
*/
|
|
137
281
|
newStream(protocols: string | string[], options?: NewStreamOptions): Promise<Stream>;
|
|
138
282
|
/**
|
|
139
|
-
* Gracefully close the connection.
|
|
140
|
-
*
|
|
141
|
-
* will still be emitted as a 'message' event.
|
|
283
|
+
* Gracefully close the connection. All queued data will be written to the
|
|
284
|
+
* underlying transport.
|
|
142
285
|
*/
|
|
143
286
|
close(options?: AbortOptions): Promise<void>;
|
|
144
287
|
/**
|
|
145
|
-
* Immediately close the connection
|
|
146
|
-
* be discarded.
|
|
288
|
+
* Immediately close the connection, any queued data will be discarded
|
|
147
289
|
*/
|
|
148
290
|
abort(err: Error): void;
|
|
291
|
+
/**
|
|
292
|
+
* The connection logger
|
|
293
|
+
*/
|
|
294
|
+
log: Logger;
|
|
149
295
|
}
|
|
150
296
|
export declare const connectionSymbol: unique symbol;
|
|
151
297
|
export declare function isConnection(other: any): other is Connection;
|
|
298
|
+
export interface ConnectionProtector {
|
|
299
|
+
/**
|
|
300
|
+
* Takes a given Connection and creates a private encryption stream
|
|
301
|
+
* between its two peers from the PSK the Protector instance was
|
|
302
|
+
* created with.
|
|
303
|
+
*/
|
|
304
|
+
protect(connection: MultiaddrConnection, options?: AbortOptions): Promise<MultiaddrConnection>;
|
|
305
|
+
}
|
|
306
|
+
export interface MultiaddrConnectionTimeline {
|
|
307
|
+
/**
|
|
308
|
+
* When the connection was opened
|
|
309
|
+
*/
|
|
310
|
+
open: number;
|
|
311
|
+
/**
|
|
312
|
+
* When the MultiaddrConnection was upgraded to a Connection - the type of
|
|
313
|
+
* connection encryption and multiplexing was negotiated.
|
|
314
|
+
*/
|
|
315
|
+
upgraded?: number;
|
|
316
|
+
/**
|
|
317
|
+
* When the connection was closed.
|
|
318
|
+
*/
|
|
319
|
+
close?: number;
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* A MultiaddrConnection is returned by transports after dialing
|
|
323
|
+
* a peer. It is a low-level primitive and is the raw connection
|
|
324
|
+
* without encryption or stream multiplexing.
|
|
325
|
+
*/
|
|
326
|
+
export interface MultiaddrConnection extends Duplex<AsyncGenerator<Uint8Array | Uint8ArrayList>> {
|
|
327
|
+
/**
|
|
328
|
+
* Gracefully close the connection. All queued data will be written to the
|
|
329
|
+
* underlying transport.
|
|
330
|
+
*/
|
|
331
|
+
close(options?: AbortOptions): Promise<void>;
|
|
332
|
+
/**
|
|
333
|
+
* Immediately close the connection, any queued data will be discarded
|
|
334
|
+
*/
|
|
335
|
+
abort(err: Error): void;
|
|
336
|
+
/**
|
|
337
|
+
* The address of the remote end of the connection
|
|
338
|
+
*/
|
|
339
|
+
remoteAddr: Multiaddr;
|
|
340
|
+
/**
|
|
341
|
+
* When connection life cycle events occurred
|
|
342
|
+
*/
|
|
343
|
+
timeline: MultiaddrConnectionTimeline;
|
|
344
|
+
/**
|
|
345
|
+
* The multiaddr connection logger
|
|
346
|
+
*/
|
|
347
|
+
log: Logger;
|
|
348
|
+
}
|
|
152
349
|
//# sourceMappingURL=connection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,UAAU,CAAA;AAE9C,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,KAAK,CAA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AC,CAAA;IAEpF;;;OAGG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAE5C;;OAEG;IACH,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,eAAO,MAAM,gBAAgB,eAAmC,CAAA;AAEhE,wBAAgB,YAAY,CAAE,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,UAAU,CAE7D;AAED,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,OAAO,CAAC,UAAU,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;CAC/F;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,MAAM,CAAC,cAAc,CAAC,UAAU,GAAG,cAAc,CAAC,CAAC;IAC9F;;;OAGG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAE5C;;OAEG;IACH,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,UAAU,EAAE,SAAS,CAAA;IAErB;;OAEG;IACH,QAAQ,EAAE,2BAA2B,CAAA;IAErC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;CACZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/connection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/connection.ts"],"names":[],"mappings":"AAwVA,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;AAEhE,MAAM,UAAU,YAAY,CAAE,KAAU;IACtC,OAAO,KAAK,IAAI,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAC1D,CAAC"}
|
package/dist/src/errors.d.ts
CHANGED
|
@@ -77,24 +77,6 @@ export declare class MuxerClosedError extends Error {
|
|
|
77
77
|
static name: string;
|
|
78
78
|
constructor(message?: string);
|
|
79
79
|
}
|
|
80
|
-
/**
|
|
81
|
-
* Thrown when a protocol stream is closed during an operation
|
|
82
|
-
*
|
|
83
|
-
* @deprecated delete if unused
|
|
84
|
-
*/
|
|
85
|
-
export declare class StreamClosedError extends Error {
|
|
86
|
-
static name: string;
|
|
87
|
-
constructor(message?: string);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Thrown when a protocol stream is closing during an operation
|
|
91
|
-
*
|
|
92
|
-
* @deprecated delete if unused
|
|
93
|
-
*/
|
|
94
|
-
export declare class StreamClosingError extends Error {
|
|
95
|
-
static name: string;
|
|
96
|
-
constructor(message?: string);
|
|
97
|
-
}
|
|
98
80
|
/**
|
|
99
81
|
* Thrown when a protocol stream is reset by the remote muxer
|
|
100
82
|
*/
|
|
@@ -102,13 +84,6 @@ export declare class StreamResetError extends Error {
|
|
|
102
84
|
static name: string;
|
|
103
85
|
constructor(message?: string);
|
|
104
86
|
}
|
|
105
|
-
/**
|
|
106
|
-
* Thrown when a protocol stream is aborted locally
|
|
107
|
-
*/
|
|
108
|
-
export declare class StreamAbortedError extends Error {
|
|
109
|
-
static name: string;
|
|
110
|
-
constructor(message?: string);
|
|
111
|
-
}
|
|
112
87
|
/**
|
|
113
88
|
* Thrown when a stream is in an invalid state
|
|
114
89
|
*/
|
|
@@ -116,13 +91,6 @@ export declare class StreamStateError extends Error {
|
|
|
116
91
|
static name: string;
|
|
117
92
|
constructor(message?: string);
|
|
118
93
|
}
|
|
119
|
-
/**
|
|
120
|
-
* Thrown when a stream buffer is full
|
|
121
|
-
*/
|
|
122
|
-
export declare class StreamBufferError extends Error {
|
|
123
|
-
static name: string;
|
|
124
|
-
constructor(message?: string);
|
|
125
|
-
}
|
|
126
94
|
/**
|
|
127
95
|
* Thrown when a value could not be found
|
|
128
96
|
*/
|
package/dist/src/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACnC,MAAM,CAAC,IAAI,SAAe;gBAEb,OAAO,GAAE,MAAoC;CAI3D;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,MAAM,CAAC,IAAI,SAAwB;gBAEtB,OAAO,SAAoB;CAIzC;AAED;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,KAAK;IACnD,MAAM,CAAC,IAAI,SAA+B;gBAE7B,OAAO,SAA4B;CAIjD;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,MAAM,CAAC,IAAI,SAA2B;gBAEzB,OAAO,SAAuB;CAI5C;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,MAAM,CAAC,IAAI,SAA0B;gBAExB,OAAO,SAAuB;CAI5C;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,MAAM,CAAC,IAAI,SAA2B;gBAEzB,OAAO,SAAwB;CAI7C;AAED;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,KAAK;IAClD,MAAM,CAAC,IAAI,SAA8B;gBAE5B,OAAO,SAA0B;CAI/C;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,MAAM,CAAC,IAAI,SAA2B;gBAEzB,OAAO,SAA8B;CAInD;AAED;;GAEG;AACH,qBAAa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export class MuxerClosedError extends Error {
|
|
|
110
110
|
this.name = 'MuxerClosedError';
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
/**
|
|
114
|
-
* Thrown when a protocol stream is closed during an operation
|
|
115
|
-
*
|
|
116
|
-
* @deprecated delete if unused
|
|
117
|
-
*/
|
|
118
|
-
export class StreamClosedError extends Error {
|
|
119
|
-
static name = 'StreamClosedError';
|
|
120
|
-
constructor(message = 'The stream has been closed') {
|
|
121
|
-
super(message);
|
|
122
|
-
this.name = 'StreamClosedError';
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Thrown when a protocol stream is closing during an operation
|
|
127
|
-
*
|
|
128
|
-
* @deprecated delete if unused
|
|
129
|
-
*/
|
|
130
|
-
export class StreamClosingError extends Error {
|
|
131
|
-
static name = 'StreamClosingError';
|
|
132
|
-
constructor(message = 'The stream is closing') {
|
|
133
|
-
super(message);
|
|
134
|
-
this.name = 'StreamClosingError';
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
113
|
/**
|
|
138
114
|
* Thrown when a protocol stream is reset by the remote muxer
|
|
139
115
|
*/
|
|
@@ -144,16 +120,6 @@ export class StreamResetError extends Error {
|
|
|
144
120
|
this.name = 'StreamResetError';
|
|
145
121
|
}
|
|
146
122
|
}
|
|
147
|
-
/**
|
|
148
|
-
* Thrown when a protocol stream is aborted locally
|
|
149
|
-
*/
|
|
150
|
-
export class StreamAbortedError extends Error {
|
|
151
|
-
static name = 'StreamAbortedError';
|
|
152
|
-
constructor(message = 'The stream has been aborted') {
|
|
153
|
-
super(message);
|
|
154
|
-
this.name = 'StreamAbortedError';
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
123
|
/**
|
|
158
124
|
* Thrown when a stream is in an invalid state
|
|
159
125
|
*/
|
|
@@ -164,16 +130,6 @@ export class StreamStateError extends Error {
|
|
|
164
130
|
this.name = 'StreamStateError';
|
|
165
131
|
}
|
|
166
132
|
}
|
|
167
|
-
/**
|
|
168
|
-
* Thrown when a stream buffer is full
|
|
169
|
-
*/
|
|
170
|
-
export class StreamBufferError extends Error {
|
|
171
|
-
static name = 'StreamBufferError';
|
|
172
|
-
constructor(message = 'The stream buffer was full') {
|
|
173
|
-
super(message);
|
|
174
|
-
this.name = 'StreamBufferError';
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
133
|
/**
|
|
178
134
|
* Thrown when a value could not be found
|
|
179
135
|
*/
|
package/dist/src/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAK;IACnC,MAAM,CAAC,IAAI,GAAG,YAAY,CAAA;IAE1B,YAAa,UAAkB,2BAA2B;QACxD,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,YAAY,CAAA;IAC1B,CAAC;;AAGH;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAC5C,MAAM,CAAC,IAAI,GAAG,qBAAqB,CAAA;IAEnC,YAAa,OAAO,GAAG,iBAAiB;QACtC,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAA;IACnC,CAAC;;AAGH;;GAEG;AACH,MAAM,OAAO,0BAA2B,SAAQ,KAAK;IACnD,MAAM,CAAC,IAAI,GAAG,4BAA4B,CAAA;IAE1C,YAAa,OAAO,GAAG,yBAAyB;QAC9C,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,4BAA4B,CAAA;IAC1C,CAAC;;AAGH;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAC/C,MAAM,CAAC,IAAI,GAAG,wBAAwB,CAAA;IAEtC,YAAa,OAAO,GAAG,oBAAoB;QACzC,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,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