@libp2p/interface 2.11.0 → 3.0.0-425a42cdd
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 +17 -15
- package/dist/src/connection-encrypter.d.ts.map +1 -1
- package/dist/src/connection-gater.d.ts +1 -2
- package/dist/src/connection-gater.d.ts.map +1 -1
- package/dist/src/connection-protector.d.ts +9 -0
- package/dist/src/connection-protector.d.ts.map +1 -0
- package/dist/src/connection-protector.js +2 -0
- package/dist/src/connection-protector.js.map +1 -0
- package/dist/src/connection.d.ts +36 -233
- package/dist/src/connection.d.ts.map +1 -1
- package/dist/src/connection.js.map +1 -1
- package/dist/src/errors.d.ts +14 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +20 -0
- package/dist/src/errors.js.map +1 -1
- package/dist/src/events.d.ts +26 -0
- package/dist/src/events.d.ts.map +1 -0
- package/dist/src/events.js +36 -0
- package/dist/src/events.js.map +1 -0
- package/dist/src/index.d.ts +35 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +7 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/message-stream.d.ts +159 -0
- package/dist/src/message-stream.d.ts.map +1 -0
- package/dist/src/message-stream.js +2 -0
- package/dist/src/message-stream.js.map +1 -0
- package/dist/src/metrics.d.ts +2 -2
- package/dist/src/metrics.d.ts.map +1 -1
- package/dist/src/multiaddr-connection.d.ts +25 -0
- package/dist/src/multiaddr-connection.d.ts.map +1 -0
- package/dist/src/multiaddr-connection.js +2 -0
- package/dist/src/multiaddr-connection.js.map +1 -0
- package/dist/src/peer-store.d.ts +0 -4
- package/dist/src/peer-store.d.ts.map +1 -1
- package/dist/src/stream-handler.d.ts +12 -13
- package/dist/src/stream-handler.d.ts.map +1 -1
- package/dist/src/stream-muxer.d.ts +113 -30
- package/dist/src/stream-muxer.d.ts.map +1 -1
- package/dist/src/stream.d.ts +63 -0
- package/dist/src/stream.d.ts.map +1 -0
- package/dist/src/stream.js +2 -0
- package/dist/src/stream.js.map +1 -0
- package/dist/src/topology.d.ts +3 -3
- package/dist/src/topology.d.ts.map +1 -1
- package/dist/src/transport.d.ts +20 -13
- package/dist/src/transport.d.ts.map +1 -1
- package/dist/src/transport.js.map +1 -1
- package/package.json +4 -6
- package/src/connection-encrypter.ts +19 -16
- package/src/connection-gater.ts +1 -2
- package/src/connection-protector.ts +9 -0
- package/src/connection.ts +38 -270
- package/src/errors.ts +24 -0
- package/src/events.ts +44 -0
- package/src/index.ts +38 -5
- package/src/message-stream.ts +183 -0
- package/src/metrics.ts +2 -2
- package/src/multiaddr-connection.ts +27 -0
- package/src/peer-store.ts +0 -5
- package/src/stream-handler.ts +14 -15
- package/src/stream-muxer.ts +122 -30
- package/src/stream.ts +70 -0
- package/src/topology.ts +3 -3
- package/src/transport.ts +25 -14
- package/dist/src/pubsub.d.ts +0 -248
- package/dist/src/pubsub.d.ts.map +0 -1
- package/dist/src/pubsub.js +0 -47
- package/dist/src/pubsub.js.map +0 -1
- package/dist/typedoc-urls.json +0 -223
- package/src/pubsub.ts +0 -286
package/dist/src/pubsub.d.ts
DELETED
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
import type { Stream } from './connection.js';
|
|
2
|
-
import type { PublicKey } from './keys.js';
|
|
3
|
-
import type { PeerId } from './peer-id.js';
|
|
4
|
-
import type { Pushable } from 'it-pushable';
|
|
5
|
-
import type { TypedEventTarget } from 'main-event';
|
|
6
|
-
import type { Uint8ArrayList } from 'uint8arraylist';
|
|
7
|
-
/**
|
|
8
|
-
* On the producing side:
|
|
9
|
-
* - Build messages with the signature, key (from may be enough for certain inlineable public key types), from and seqno fields.
|
|
10
|
-
*
|
|
11
|
-
* On the consuming side:
|
|
12
|
-
* - Enforce the fields to be present, reject otherwise.
|
|
13
|
-
* - Propagate only if the fields are valid and signature can be verified, reject otherwise.
|
|
14
|
-
*/
|
|
15
|
-
export declare const StrictSign = "StrictSign";
|
|
16
|
-
/**
|
|
17
|
-
* On the producing side:
|
|
18
|
-
* - Build messages without the signature, key, from and seqno fields.
|
|
19
|
-
* - The corresponding protobuf key-value pairs are absent from the marshaled message, not just empty.
|
|
20
|
-
*
|
|
21
|
-
* On the consuming side:
|
|
22
|
-
* - Enforce the fields to be absent, reject otherwise.
|
|
23
|
-
* - Propagate only if the fields are absent, reject otherwise.
|
|
24
|
-
* - A message_id function will not be able to use the above fields, and should instead rely on the data field. A commonplace strategy is to calculate a hash.
|
|
25
|
-
*/
|
|
26
|
-
export declare const StrictNoSign = "StrictNoSign";
|
|
27
|
-
export type SignaturePolicy = typeof StrictSign | typeof StrictNoSign;
|
|
28
|
-
export interface SignedMessage {
|
|
29
|
-
type: 'signed';
|
|
30
|
-
from: PeerId;
|
|
31
|
-
topic: string;
|
|
32
|
-
data: Uint8Array;
|
|
33
|
-
sequenceNumber: bigint;
|
|
34
|
-
signature: Uint8Array;
|
|
35
|
-
key: PublicKey;
|
|
36
|
-
}
|
|
37
|
-
export interface UnsignedMessage {
|
|
38
|
-
type: 'unsigned';
|
|
39
|
-
topic: string;
|
|
40
|
-
data: Uint8Array;
|
|
41
|
-
}
|
|
42
|
-
export type Message = SignedMessage | UnsignedMessage;
|
|
43
|
-
export interface PubSubRPCMessage {
|
|
44
|
-
from?: Uint8Array;
|
|
45
|
-
topic?: string;
|
|
46
|
-
data?: Uint8Array;
|
|
47
|
-
sequenceNumber?: Uint8Array;
|
|
48
|
-
signature?: Uint8Array;
|
|
49
|
-
key?: Uint8Array;
|
|
50
|
-
}
|
|
51
|
-
export interface PubSubRPCSubscription {
|
|
52
|
-
subscribe?: boolean;
|
|
53
|
-
topic?: string;
|
|
54
|
-
}
|
|
55
|
-
export interface PubSubRPC {
|
|
56
|
-
subscriptions: PubSubRPCSubscription[];
|
|
57
|
-
messages: PubSubRPCMessage[];
|
|
58
|
-
}
|
|
59
|
-
export interface PeerStreams extends TypedEventTarget<PeerStreamEvents> {
|
|
60
|
-
id: PeerId;
|
|
61
|
-
protocol: string;
|
|
62
|
-
outboundStream?: Pushable<Uint8ArrayList>;
|
|
63
|
-
inboundStream?: AsyncIterable<Uint8ArrayList>;
|
|
64
|
-
isWritable: boolean;
|
|
65
|
-
close(): void;
|
|
66
|
-
write(buf: Uint8Array | Uint8ArrayList): void;
|
|
67
|
-
attachInboundStream(stream: Stream): AsyncIterable<Uint8ArrayList>;
|
|
68
|
-
attachOutboundStream(stream: Stream): Promise<Pushable<Uint8ArrayList>>;
|
|
69
|
-
}
|
|
70
|
-
export interface PubSubInit {
|
|
71
|
-
enabled?: boolean;
|
|
72
|
-
multicodecs?: string[];
|
|
73
|
-
/**
|
|
74
|
-
* defines how signatures should be handled
|
|
75
|
-
*/
|
|
76
|
-
globalSignaturePolicy?: SignaturePolicy;
|
|
77
|
-
/**
|
|
78
|
-
* if can relay messages not subscribed
|
|
79
|
-
*/
|
|
80
|
-
canRelayMessage?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* if publish should emit to self, if subscribed
|
|
83
|
-
*/
|
|
84
|
-
emitSelf?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* handle this many incoming pubsub messages concurrently
|
|
87
|
-
*/
|
|
88
|
-
messageProcessingConcurrency?: number;
|
|
89
|
-
/**
|
|
90
|
-
* How many parallel incoming streams to allow on the pubsub protocol per-connection
|
|
91
|
-
*/
|
|
92
|
-
maxInboundStreams?: number;
|
|
93
|
-
/**
|
|
94
|
-
* How many parallel outgoing streams to allow on the pubsub protocol per-connection
|
|
95
|
-
*/
|
|
96
|
-
maxOutboundStreams?: number;
|
|
97
|
-
}
|
|
98
|
-
export interface Subscription {
|
|
99
|
-
topic: string;
|
|
100
|
-
subscribe: boolean;
|
|
101
|
-
}
|
|
102
|
-
export interface SubscriptionChangeData {
|
|
103
|
-
peerId: PeerId;
|
|
104
|
-
subscriptions: Subscription[];
|
|
105
|
-
}
|
|
106
|
-
export interface PubSubEvents {
|
|
107
|
-
'subscription-change': CustomEvent<SubscriptionChangeData>;
|
|
108
|
-
message: CustomEvent<Message>;
|
|
109
|
-
}
|
|
110
|
-
export interface PublishResult {
|
|
111
|
-
recipients: PeerId[];
|
|
112
|
-
}
|
|
113
|
-
export declare enum TopicValidatorResult {
|
|
114
|
-
/**
|
|
115
|
-
* The message is considered valid, and it should be delivered and forwarded to the network
|
|
116
|
-
*/
|
|
117
|
-
Accept = "accept",
|
|
118
|
-
/**
|
|
119
|
-
* The message is neither delivered nor forwarded to the network
|
|
120
|
-
*/
|
|
121
|
-
Ignore = "ignore",
|
|
122
|
-
/**
|
|
123
|
-
* The message is considered invalid, and it should be rejected
|
|
124
|
-
*/
|
|
125
|
-
Reject = "reject"
|
|
126
|
-
}
|
|
127
|
-
export interface TopicValidatorFn {
|
|
128
|
-
(peer: PeerId, message: Message): TopicValidatorResult | Promise<TopicValidatorResult>;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* @deprecated This will be removed from `@libp2p/interface` in a future release, pubsub implementations should declare their own types
|
|
132
|
-
*/
|
|
133
|
-
export interface PubSub<Events extends Record<string, any> = PubSubEvents> extends TypedEventTarget<Events> {
|
|
134
|
-
/**
|
|
135
|
-
* The global signature policy controls whether or not we sill send and receive
|
|
136
|
-
* signed or unsigned messages.
|
|
137
|
-
*
|
|
138
|
-
* Signed messages prevent spoofing message senders and should be preferred to
|
|
139
|
-
* using unsigned messages.
|
|
140
|
-
*/
|
|
141
|
-
globalSignaturePolicy: typeof StrictSign | typeof StrictNoSign;
|
|
142
|
-
/**
|
|
143
|
-
* A list of multicodecs that contain the pubsub protocol name.
|
|
144
|
-
*/
|
|
145
|
-
multicodecs: string[];
|
|
146
|
-
/**
|
|
147
|
-
* Pubsub routers support message validators per topic, which will validate the message
|
|
148
|
-
* before its propagations. They are stored in a map where keys are the topic name and
|
|
149
|
-
* values are the validators.
|
|
150
|
-
*
|
|
151
|
-
* @example
|
|
152
|
-
*
|
|
153
|
-
* ```TypeScript
|
|
154
|
-
* const topic = 'topic'
|
|
155
|
-
* const validateMessage = (msgTopic, msg) => {
|
|
156
|
-
* const input = uint8ArrayToString(msg.data)
|
|
157
|
-
* const validInputs = ['a', 'b', 'c']
|
|
158
|
-
*
|
|
159
|
-
* if (!validInputs.includes(input)) {
|
|
160
|
-
* throw new Error('no valid input received')
|
|
161
|
-
* }
|
|
162
|
-
* }
|
|
163
|
-
* libp2p.pubsub.topicValidators.set(topic, validateMessage)
|
|
164
|
-
* ```
|
|
165
|
-
*/
|
|
166
|
-
topicValidators: Map<string, TopicValidatorFn>;
|
|
167
|
-
getPeers(): PeerId[];
|
|
168
|
-
/**
|
|
169
|
-
* Gets a list of topics the node is subscribed to.
|
|
170
|
-
*
|
|
171
|
-
* ```TypeScript
|
|
172
|
-
* const topics = libp2p.pubsub.getTopics()
|
|
173
|
-
* ```
|
|
174
|
-
*/
|
|
175
|
-
getTopics(): string[];
|
|
176
|
-
/**
|
|
177
|
-
* Subscribes to a pubsub topic.
|
|
178
|
-
*
|
|
179
|
-
* @example
|
|
180
|
-
*
|
|
181
|
-
* ```TypeScript
|
|
182
|
-
* const topic = 'topic'
|
|
183
|
-
* const handler = (msg) => {
|
|
184
|
-
* if (msg.topic === topic) {
|
|
185
|
-
* // msg.data - pubsub data received
|
|
186
|
-
* }
|
|
187
|
-
* }
|
|
188
|
-
*
|
|
189
|
-
* libp2p.pubsub.addEventListener('message', handler)
|
|
190
|
-
* libp2p.pubsub.subscribe(topic)
|
|
191
|
-
* ```
|
|
192
|
-
*/
|
|
193
|
-
subscribe(topic: string): void;
|
|
194
|
-
/**
|
|
195
|
-
* Unsubscribes from a pubsub topic.
|
|
196
|
-
*
|
|
197
|
-
* @example
|
|
198
|
-
*
|
|
199
|
-
* ```TypeScript
|
|
200
|
-
* const topic = 'topic'
|
|
201
|
-
* const handler = (msg) => {
|
|
202
|
-
* // msg.data - pubsub data received
|
|
203
|
-
* }
|
|
204
|
-
*
|
|
205
|
-
* libp2p.pubsub.removeEventListener(topic handler)
|
|
206
|
-
* libp2p.pubsub.unsubscribe(topic)
|
|
207
|
-
* ```
|
|
208
|
-
*/
|
|
209
|
-
unsubscribe(topic: string): void;
|
|
210
|
-
/**
|
|
211
|
-
* Gets a list of the PeerIds that are subscribed to one topic.
|
|
212
|
-
*
|
|
213
|
-
* @example
|
|
214
|
-
*
|
|
215
|
-
* ```TypeScript
|
|
216
|
-
* const peerIds = libp2p.pubsub.getSubscribers(topic)
|
|
217
|
-
* ```
|
|
218
|
-
*/
|
|
219
|
-
getSubscribers(topic: string): PeerId[];
|
|
220
|
-
/**
|
|
221
|
-
* Publishes messages to the given topic.
|
|
222
|
-
*
|
|
223
|
-
* @example
|
|
224
|
-
*
|
|
225
|
-
* ```TypeScript
|
|
226
|
-
* const topic = 'topic'
|
|
227
|
-
* const data = uint8ArrayFromString('data')
|
|
228
|
-
*
|
|
229
|
-
* await libp2p.pubsub.publish(topic, data)
|
|
230
|
-
* ```
|
|
231
|
-
*/
|
|
232
|
-
publish(topic: string, data: Uint8Array): Promise<PublishResult>;
|
|
233
|
-
}
|
|
234
|
-
export interface PeerStreamEvents {
|
|
235
|
-
'stream:inbound': CustomEvent<never>;
|
|
236
|
-
'stream:outbound': CustomEvent<never>;
|
|
237
|
-
close: CustomEvent<never>;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* All Pubsub implementations must use this symbol as the name of a property
|
|
241
|
-
* with a boolean `true` value
|
|
242
|
-
*/
|
|
243
|
-
export declare const pubSubSymbol: unique symbol;
|
|
244
|
-
/**
|
|
245
|
-
* Returns true if the passed argument is a PubSub implementation
|
|
246
|
-
*/
|
|
247
|
-
export declare function isPubSub(obj?: any): obj is PubSub;
|
|
248
|
-
//# sourceMappingURL=pubsub.d.ts.map
|
package/dist/src/pubsub.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pubsub.d.ts","sourceRoot":"","sources":["../../src/pubsub.ts"],"names":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;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;CACjE;AAED,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,WAAW,CAAC,KAAK,CAAC,CAAA;IACpC,iBAAiB,EAAE,WAAW,CAAC,KAAK,CAAC,CAAA;IACrC,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,CAAA;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,eAA+B,CAAA;AAExD;;GAEG;AACH,wBAAgB,QAAQ,CAAE,GAAG,CAAC,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM,CAElD"}
|
package/dist/src/pubsub.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* On the producing side:
|
|
3
|
-
* - Build messages with the signature, key (from may be enough for certain inlineable public key types), from and seqno fields.
|
|
4
|
-
*
|
|
5
|
-
* On the consuming side:
|
|
6
|
-
* - Enforce the fields to be present, reject otherwise.
|
|
7
|
-
* - Propagate only if the fields are valid and signature can be verified, reject otherwise.
|
|
8
|
-
*/
|
|
9
|
-
export const StrictSign = 'StrictSign';
|
|
10
|
-
/**
|
|
11
|
-
* On the producing side:
|
|
12
|
-
* - Build messages without the signature, key, from and seqno fields.
|
|
13
|
-
* - The corresponding protobuf key-value pairs are absent from the marshaled message, not just empty.
|
|
14
|
-
*
|
|
15
|
-
* On the consuming side:
|
|
16
|
-
* - Enforce the fields to be absent, reject otherwise.
|
|
17
|
-
* - Propagate only if the fields are absent, reject otherwise.
|
|
18
|
-
* - A message_id function will not be able to use the above fields, and should instead rely on the data field. A commonplace strategy is to calculate a hash.
|
|
19
|
-
*/
|
|
20
|
-
export const StrictNoSign = 'StrictNoSign';
|
|
21
|
-
export var TopicValidatorResult;
|
|
22
|
-
(function (TopicValidatorResult) {
|
|
23
|
-
/**
|
|
24
|
-
* The message is considered valid, and it should be delivered and forwarded to the network
|
|
25
|
-
*/
|
|
26
|
-
TopicValidatorResult["Accept"] = "accept";
|
|
27
|
-
/**
|
|
28
|
-
* The message is neither delivered nor forwarded to the network
|
|
29
|
-
*/
|
|
30
|
-
TopicValidatorResult["Ignore"] = "ignore";
|
|
31
|
-
/**
|
|
32
|
-
* The message is considered invalid, and it should be rejected
|
|
33
|
-
*/
|
|
34
|
-
TopicValidatorResult["Reject"] = "reject";
|
|
35
|
-
})(TopicValidatorResult || (TopicValidatorResult = {}));
|
|
36
|
-
/**
|
|
37
|
-
* All Pubsub implementations must use this symbol as the name of a property
|
|
38
|
-
* with a boolean `true` value
|
|
39
|
-
*/
|
|
40
|
-
export const pubSubSymbol = Symbol.for('@libp2p/pubsub');
|
|
41
|
-
/**
|
|
42
|
-
* Returns true if the passed argument is a PubSub implementation
|
|
43
|
-
*/
|
|
44
|
-
export function isPubSub(obj) {
|
|
45
|
-
return Boolean(obj?.[pubSubSymbol]);
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=pubsub.js.map
|
package/dist/src/pubsub.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pubsub.js","sourceRoot":"","sources":["../../src/pubsub.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAA;AAEtC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAA;AA6G1C,MAAM,CAAN,IAAY,oBAaX;AAbD,WAAY,oBAAoB;IAC9B;;OAEG;IACH,yCAAiB,CAAA;IACjB;;OAEG;IACH,yCAAiB,CAAA;IACjB;;OAEG;IACH,yCAAiB,CAAA;AACnB,CAAC,EAbW,oBAAoB,KAApB,oBAAoB,QAa/B;AA6HD;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;AAExD;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAE,GAAS;IACjC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC,CAAA;AACrC,CAAC"}
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"FaultTolerance": "https://libp2p.github.io/js-libp2p/enums/_libp2p_interface.FaultTolerance.html",
|
|
3
|
-
"TopicValidatorResult": "https://libp2p.github.io/js-libp2p/enums/_libp2p_interface.TopicValidatorResult.html",
|
|
4
|
-
"AbortError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.AbortError.html",
|
|
5
|
-
"AlreadyStartedError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.AlreadyStartedError.html",
|
|
6
|
-
"ConnectionClosedError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.ConnectionClosedError.html",
|
|
7
|
-
"ConnectionClosingError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.ConnectionClosingError.html",
|
|
8
|
-
"ConnectionFailedError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.ConnectionFailedError.html",
|
|
9
|
-
"DialError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.DialError.html",
|
|
10
|
-
"InvalidCIDError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.InvalidCIDError.html",
|
|
11
|
-
"InvalidCryptoExchangeError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.InvalidCryptoExchangeError.html",
|
|
12
|
-
"InvalidMessageError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.InvalidMessageError.html",
|
|
13
|
-
"InvalidMultiaddrError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.InvalidMultiaddrError.html",
|
|
14
|
-
"InvalidMultihashError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.InvalidMultihashError.html",
|
|
15
|
-
"InvalidParametersError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.InvalidParametersError.html",
|
|
16
|
-
"InvalidPeerIdError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.InvalidPeerIdError.html",
|
|
17
|
-
"InvalidPrivateKeyError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.InvalidPrivateKeyError.html",
|
|
18
|
-
"InvalidPublicKeyError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.InvalidPublicKeyError.html",
|
|
19
|
-
"LimitedConnectionError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.LimitedConnectionError.html",
|
|
20
|
-
"ListenError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.ListenError.html",
|
|
21
|
-
"MuxerClosedError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.MuxerClosedError.html",
|
|
22
|
-
"NotFoundError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.NotFoundError.html",
|
|
23
|
-
"NotImplementedError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.NotImplementedError.html",
|
|
24
|
-
"NotStartedError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.NotStartedError.html",
|
|
25
|
-
"ProtocolError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.ProtocolError.html",
|
|
26
|
-
"StreamResetError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.StreamResetError.html",
|
|
27
|
-
"StreamStateError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.StreamStateError.html",
|
|
28
|
-
"TimeoutError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.TimeoutError.html",
|
|
29
|
-
"TooManyInboundProtocolStreamsError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.TooManyInboundProtocolStreamsError.html",
|
|
30
|
-
"TooManyOutboundProtocolStreamsError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.TooManyOutboundProtocolStreamsError.html",
|
|
31
|
-
"UnexpectedPeerError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.UnexpectedPeerError.html",
|
|
32
|
-
"UnsupportedKeyTypeError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.UnsupportedKeyTypeError.html",
|
|
33
|
-
"UnsupportedOperationError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.UnsupportedOperationError.html",
|
|
34
|
-
"UnsupportedProtocolError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.UnsupportedProtocolError.html",
|
|
35
|
-
"AbortOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.AbortOptions.html",
|
|
36
|
-
".:AbortOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.AbortOptions.html",
|
|
37
|
-
"Address": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Address.html",
|
|
38
|
-
"AddressSorter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.AddressSorter.html",
|
|
39
|
-
".:AddressSorter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.AddressSorter.html",
|
|
40
|
-
"CalculatedHistogramOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CalculatedHistogramOptions.html",
|
|
41
|
-
"CalculatedMetricOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CalculatedMetricOptions.html",
|
|
42
|
-
"CalculatedSummaryOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CalculatedSummaryOptions.html",
|
|
43
|
-
"ClearableSignal": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ClearableSignal.html",
|
|
44
|
-
".:ClearableSignal": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ClearableSignal.html",
|
|
45
|
-
"ComponentLogger": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ComponentLogger.html",
|
|
46
|
-
".:ComponentLogger": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_logger.ComponentLogger.html",
|
|
47
|
-
"Connection": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Connection.html",
|
|
48
|
-
"ConnectionEncrypter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionEncrypter.html",
|
|
49
|
-
"ConnectionGater": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionGater.html",
|
|
50
|
-
"ConnectionLimits": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionLimits.html",
|
|
51
|
-
"ConnectionProtector": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionProtector.html",
|
|
52
|
-
"ConnectionTimeline": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionTimeline.html",
|
|
53
|
-
"ConsumePeerRecordOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConsumePeerRecordOptions.html",
|
|
54
|
-
"ContentRouting": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ContentRouting.html",
|
|
55
|
-
"ContentRoutingProvider": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ContentRoutingProvider.html",
|
|
56
|
-
"Counter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Counter.html",
|
|
57
|
-
"CounterGroup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CounterGroup.html",
|
|
58
|
-
"CreateListenerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CreateListenerOptions.html",
|
|
59
|
-
"DialOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.DialOptions.html",
|
|
60
|
-
".:DialOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.DialOptions.html",
|
|
61
|
-
"DialProtocolOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.DialProtocolOptions.html",
|
|
62
|
-
".:DialProtocolOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.DialProtocolOptions.html",
|
|
63
|
-
"DialTransportOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.DialTransportOptions.html",
|
|
64
|
-
"ECDSAPrivateKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ECDSAPrivateKey.html",
|
|
65
|
-
"ECDSAPublicKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ECDSAPublicKey.html",
|
|
66
|
-
"Ed25519PeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Ed25519PeerId.html",
|
|
67
|
-
"Ed25519PrivateKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Ed25519PrivateKey.html",
|
|
68
|
-
"Ed25519PublicKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Ed25519PublicKey.html",
|
|
69
|
-
"Envelope": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Envelope.html",
|
|
70
|
-
"Histogram": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Histogram.html",
|
|
71
|
-
"HistogramGroup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.HistogramGroup.html",
|
|
72
|
-
"HistogramOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.HistogramOptions.html",
|
|
73
|
-
"IdentifyResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IdentifyResult.html",
|
|
74
|
-
".:IdentifyResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IdentifyResult.html",
|
|
75
|
-
"IncomingStreamData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IncomingStreamData.html",
|
|
76
|
-
"IsDialableOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IsDialableOptions.html",
|
|
77
|
-
".:IsDialableOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IsDialableOptions.html",
|
|
78
|
-
"Libp2p": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Libp2p.html",
|
|
79
|
-
".:Libp2p": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.index.Libp2p.html",
|
|
80
|
-
"Libp2pEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Libp2pEvents.html",
|
|
81
|
-
".:Libp2pEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Libp2pEvents.html",
|
|
82
|
-
"Listener": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Listener.html",
|
|
83
|
-
"ListenerEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ListenerEvents.html",
|
|
84
|
-
"Logger": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Logger.html",
|
|
85
|
-
".:Logger": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_logger.Logger.html",
|
|
86
|
-
"LoggerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.LoggerOptions.html",
|
|
87
|
-
".:LoggerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.LoggerOptions.html",
|
|
88
|
-
"Metric": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Metric.html",
|
|
89
|
-
"MetricGroup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MetricGroup.html",
|
|
90
|
-
"MetricOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MetricOptions.html",
|
|
91
|
-
"Metrics": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Metrics.html",
|
|
92
|
-
"MultiaddrConnection": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrConnection.html",
|
|
93
|
-
"MultiaddrConnectionTimeline": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrConnectionTimeline.html",
|
|
94
|
-
"MultiaddrFilter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrFilter.html",
|
|
95
|
-
"MultiaddrResolveOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrResolveOptions.html",
|
|
96
|
-
".:MultiaddrResolveOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrResolveOptions.html",
|
|
97
|
-
"MultiaddrResolver": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrResolver.html",
|
|
98
|
-
".:MultiaddrResolver": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrResolver.html",
|
|
99
|
-
"NewStreamOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.NewStreamOptions.html",
|
|
100
|
-
"NodeInfo": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.NodeInfo.html",
|
|
101
|
-
".:NodeInfo": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.NodeInfo.html",
|
|
102
|
-
"Peer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Peer.html",
|
|
103
|
-
"PeerData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerData.html",
|
|
104
|
-
"PeerDiscovery": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerDiscovery.html",
|
|
105
|
-
"PeerDiscoveryEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerDiscoveryEvents.html",
|
|
106
|
-
"PeerDiscoveryProvider": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerDiscoveryProvider.html",
|
|
107
|
-
"PeerInfo": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerInfo.html",
|
|
108
|
-
"PeerQuery": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerQuery.html",
|
|
109
|
-
"PeerQueryFilter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerQueryFilter.html",
|
|
110
|
-
"PeerQueryOrder": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerQueryOrder.html",
|
|
111
|
-
"PeerRouting": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerRouting.html",
|
|
112
|
-
"PeerRoutingProvider": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerRoutingProvider.html",
|
|
113
|
-
"PeerStore": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerStore.html",
|
|
114
|
-
"PeerStreamEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerStreamEvents.html",
|
|
115
|
-
"PeerStreams": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerStreams.html",
|
|
116
|
-
"PeerUpdate": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerUpdate.html",
|
|
117
|
-
".:PeerUpdate": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerUpdate.html",
|
|
118
|
-
"PendingDial": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PendingDial.html",
|
|
119
|
-
".:PendingDial": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PendingDial.html",
|
|
120
|
-
"PublishResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PublishResult.html",
|
|
121
|
-
"PubSub": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSub.html",
|
|
122
|
-
"PubSubEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubEvents.html",
|
|
123
|
-
"PubSubInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubInit.html",
|
|
124
|
-
"PubSubRPC": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubRPC.html",
|
|
125
|
-
"PubSubRPCMessage": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubRPCMessage.html",
|
|
126
|
-
"PubSubRPCSubscription": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubRPCSubscription.html",
|
|
127
|
-
"Record": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Record.html",
|
|
128
|
-
"RoutingOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.RoutingOptions.html",
|
|
129
|
-
".:RoutingOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.RoutingOptions.html",
|
|
130
|
-
"RSAPeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.RSAPeerId.html",
|
|
131
|
-
"RSAPrivateKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.RSAPrivateKey.html",
|
|
132
|
-
"RSAPublicKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.RSAPublicKey.html",
|
|
133
|
-
"Secp256k1PeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Secp256k1PeerId.html",
|
|
134
|
-
"Secp256k1PrivateKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Secp256k1PrivateKey.html",
|
|
135
|
-
"Secp256k1PublicKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Secp256k1PublicKey.html",
|
|
136
|
-
"SecurableStream": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SecurableStream.html",
|
|
137
|
-
"SecureConnectionOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SecureConnectionOptions.html",
|
|
138
|
-
"SecuredConnection": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SecuredConnection.html",
|
|
139
|
-
"SignedMessage": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SignedMessage.html",
|
|
140
|
-
"SignedPeerRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SignedPeerRecord.html",
|
|
141
|
-
".:SignedPeerRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SignedPeerRecord.html",
|
|
142
|
-
"Startable": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Startable.html",
|
|
143
|
-
"StopTimer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StopTimer.html",
|
|
144
|
-
"Stream": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Stream.html",
|
|
145
|
-
"StreamHandler": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamHandler.html",
|
|
146
|
-
"StreamHandlerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamHandlerOptions.html",
|
|
147
|
-
"StreamHandlerRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamHandlerRecord.html",
|
|
148
|
-
"StreamMuxer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamMuxer.html",
|
|
149
|
-
"StreamMuxerFactory": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamMuxerFactory.html",
|
|
150
|
-
"StreamMuxerInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamMuxerInit.html",
|
|
151
|
-
"StreamTimeline": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamTimeline.html",
|
|
152
|
-
"Subscription": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Subscription.html",
|
|
153
|
-
"SubscriptionChangeData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SubscriptionChangeData.html",
|
|
154
|
-
"Summary": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Summary.html",
|
|
155
|
-
"SummaryGroup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SummaryGroup.html",
|
|
156
|
-
"SummaryOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SummaryOptions.html",
|
|
157
|
-
"Tag": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Tag.html",
|
|
158
|
-
"TagOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TagOptions.html",
|
|
159
|
-
"TLSCertificate": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TLSCertificate.html",
|
|
160
|
-
".:TLSCertificate": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TLSCertificate.html",
|
|
161
|
-
"TopicValidatorFn": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TopicValidatorFn.html",
|
|
162
|
-
"Topology": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Topology.html",
|
|
163
|
-
"TopologyFilter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TopologyFilter.html",
|
|
164
|
-
"TraceFunctionOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TraceFunctionOptions.html",
|
|
165
|
-
"TraceGeneratorFunctionOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TraceGeneratorFunctionOptions.html",
|
|
166
|
-
"TraceOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TraceOptions.html",
|
|
167
|
-
".:TraceOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TraceOptions.html",
|
|
168
|
-
"Transport": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Transport.html",
|
|
169
|
-
"UnsignedMessage": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.UnsignedMessage.html",
|
|
170
|
-
"Upgrader": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Upgrader.html",
|
|
171
|
-
"UpgraderOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.UpgraderOptions.html",
|
|
172
|
-
"URLPeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.URLPeerId.html",
|
|
173
|
-
"CalculateMetric": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.CalculateMetric.html",
|
|
174
|
-
"ConnectionStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ConnectionStatus.html",
|
|
175
|
-
"Direction": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.Direction.html",
|
|
176
|
-
"InboundConnectionUpgradeEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.InboundConnectionUpgradeEvents.html",
|
|
177
|
-
"KeyType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.KeyType.html",
|
|
178
|
-
"Libp2pStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.Libp2pStatus.html",
|
|
179
|
-
".:Libp2pStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.Libp2pStatus.html",
|
|
180
|
-
"Message": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.Message.html",
|
|
181
|
-
"OpenConnectionProgressEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.OpenConnectionProgressEvents.html",
|
|
182
|
-
".:OpenConnectionProgressEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.OpenConnectionProgressEvents.html",
|
|
183
|
-
"OutboundConnectionUpgradeEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.OutboundConnectionUpgradeEvents.html",
|
|
184
|
-
"PeerId": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PeerId.html",
|
|
185
|
-
"PeerIdType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PeerIdType.html",
|
|
186
|
-
"PendingDialStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PendingDialStatus.html",
|
|
187
|
-
".:PendingDialStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PendingDialStatus.html",
|
|
188
|
-
"PrivateKey": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PrivateKey.html",
|
|
189
|
-
"PublicKey": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PublicKey.html",
|
|
190
|
-
"ReadStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ReadStatus.html",
|
|
191
|
-
"ServiceMap": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ServiceMap.html",
|
|
192
|
-
".:ServiceMap": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ServiceMap.html",
|
|
193
|
-
"SignaturePolicy": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.SignaturePolicy.html",
|
|
194
|
-
"StreamStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.StreamStatus.html",
|
|
195
|
-
"TraceAttributes": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.TraceAttributes.html",
|
|
196
|
-
"TransportManagerDialProgressEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.TransportManagerDialProgressEvents.html",
|
|
197
|
-
".:TransportManagerDialProgressEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.TransportManagerDialProgressEvents.html",
|
|
198
|
-
"WriteStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.WriteStatus.html",
|
|
199
|
-
"YieldType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.YieldType.html",
|
|
200
|
-
"connectionSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.connectionSymbol.html",
|
|
201
|
-
"contentRoutingSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.contentRoutingSymbol.html",
|
|
202
|
-
"KEEP_ALIVE": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.KEEP_ALIVE.html",
|
|
203
|
-
"peerDiscoverySymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.peerDiscoverySymbol.html",
|
|
204
|
-
"peerIdSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.peerIdSymbol.html",
|
|
205
|
-
"peerRoutingSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.peerRoutingSymbol.html",
|
|
206
|
-
"pubSubSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.pubSubSymbol.html",
|
|
207
|
-
"serviceCapabilities": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.serviceCapabilities.html",
|
|
208
|
-
".:serviceCapabilities": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.serviceCapabilities.html",
|
|
209
|
-
"serviceDependencies": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.serviceDependencies.html",
|
|
210
|
-
".:serviceDependencies": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.serviceDependencies.html",
|
|
211
|
-
"StrictNoSign": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.StrictNoSign.html",
|
|
212
|
-
"StrictSign": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.StrictSign.html",
|
|
213
|
-
"transportSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.transportSymbol.html",
|
|
214
|
-
"isConnection": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isConnection.html",
|
|
215
|
-
"isPeerId": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isPeerId.html",
|
|
216
|
-
"isPrivateKey": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isPrivateKey.html",
|
|
217
|
-
"isPublicKey": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isPublicKey.html",
|
|
218
|
-
"isPubSub": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isPubSub.html",
|
|
219
|
-
"isStartable": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isStartable.html",
|
|
220
|
-
"isTransport": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isTransport.html",
|
|
221
|
-
"start": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.start.html",
|
|
222
|
-
"stop": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.stop.html"
|
|
223
|
-
}
|