@peerbit/pubsub 3.0.5-a4f88b6 → 3.0.5-aa577a5
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/README.md +5 -9
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -11,17 +11,13 @@ Features
|
|
|
11
11
|
|
|
12
12
|
method based on aggregated subscriber info, not only from immediate peers.
|
|
13
13
|
|
|
14
|
-
- Subscriptions with associated metadata. E.g. you can subscribe to topics and provide data that explains the purpose for peers
|
|
15
|
-
```typescript
|
|
16
|
-
.subscribe(topic, new UInt8Array([1,2,3]))
|
|
17
|
-
```
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
.getSubscribersWithData(topic, data)
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
- Efficient content routing through path-finding algorithms
|
|
15
|
+
- Efficient content routing through an approximate path finding algorithm
|
|
24
16
|
```typescript
|
|
25
17
|
.publish(data, { topics: ["a","b"]})
|
|
26
18
|
```
|
|
27
19
|
will try to find the subscribers of "a" and "b" and send messages with the shortest path in the network.
|
|
20
|
+
|
|
21
|
+
- Packet prioritization. Data packages can be sent with different priority. That allows some traffic to pass through the traffic faster than other. This is useful in case of congestion
|
|
22
|
+
- Mode'd delivery. Packages can be sent with different delivery mode 'Acknowledge' (wait for acknowledgement from all known subscribers), 'Seek' (find new subscribers for a topic), 'Silent' (just deliver).
|
|
23
|
+
- Redundancy in data delivery. Data packages can be sent with different redundancy. This means that you can choose to send some packages only in one path (the fastest) or send a package in the 'N' fastest paths (this gives you a redundancy degree of 'N'). This feature is useful when you want to adapt delivery for unstable networks or when you want to make sure that some messages are delivered with high probability (without waiting for Acknowledgemts and retry)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peerbit/pubsub",
|
|
3
|
-
"version": "3.0.5-
|
|
3
|
+
"version": "3.0.5-aa577a5",
|
|
4
4
|
"description": "Direct streaming for libp2p",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
"dao.xyz"
|
|
74
74
|
],
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@peerbit/libp2p-test-utils": "2.1.3-
|
|
76
|
+
"@peerbit/libp2p-test-utils": "2.1.3-aa577a5"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@peerbit/stream": "4.0.5-
|
|
80
|
-
"@peerbit/logger": "1.0.2-
|
|
79
|
+
"@peerbit/stream": "4.0.5-aa577a5",
|
|
80
|
+
"@peerbit/logger": "1.0.2-aa577a5",
|
|
81
81
|
"libp2p": "^1.2.3"
|
|
82
82
|
}
|
|
83
83
|
}
|