Skip to content

Commit 14eba84

Browse files
committed
0.2.6
1 parent 8561276 commit 14eba84

5 files changed

Lines changed: 12 additions & 11 deletions

File tree

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ WebPEER is a Decentralized P2P Network in the Browser. It allows developers to b
88

99
## Library
1010

11-
- [WebPEER.js](https://www.npmjs.com/package/webpeerjs) - JavaScript implementation of WebPEER designed as minimal low level API. It uses IPFS and libp2p modular stack for the specific purpose of propagating messages across the network. Consequently these messages may arrive asyncrhonously depending on the how many iterations the message goes through.
11+
- [WebPEER.js](https://www.npmjs.com/package/webpeerjs) - JavaScript implementation of WebPEER designed as minimal low level API. It uses IPFS and libp2p modular stack for the specific purpose of propagating messages across the network through direct WebRTC connections between browsers. Consequently these messages may arrive asyncrhonously depending on the how many iterations the message goes through.
1212

1313
## Security
1414

@@ -19,10 +19,11 @@ WebPEER Network run over [`libp2p gossipsub`](https://docs.libp2p.io/concepts/se
1919
2020
## Benefit
2121

22-
* ✅ Decentralized P2P Network
23-
* ✅ Scalable Peers
24-
* ✅ Accessible in Standard Browser
25-
* ✅ Broadcast Channel Provided
22+
* ✅ Decentralized
23+
* ✅ True P2P
24+
* ✅ Scalable
25+
* ✅ Standard Browser
26+
* ✅ Broadcast Channel
2627
* ✅ No Server
2728
* ✅ No Cloud
2829
* ✅ No Admin
@@ -36,9 +37,9 @@ WebPEER Network run over [`libp2p gossipsub`](https://docs.libp2p.io/concepts/se
3637
* IoT
3738
* Social media
3839
* Remote control
39-
* Multiplayer games
40+
* Multiplayer
4041
* Distributed web
41-
* Signalling protocol
42+
* Signalling
4243
* Location tracker
4344
* Activity tracker.
4445
* Chat messenger

demo/chat.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
write(`${user} : ${message}`);
180180
})
181181

182-
room.onMembersChange((data) => {
182+
room.onMembers((data) => {
183183
document.getElementById('number').innerText = data.length;
184184
let users = '';
185185
for(const user of data){

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
write(`Message from ${id} : ${message}`);
4545
})
4646

47-
room.onMembersChange((data) => {
47+
room.onMembers((data) => {
4848
write(`Members update : ${data}`);
4949
room.sendMessage('hello');
5050
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpeerjs",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"type": "module",
55
"description": "WebPEER is P2P Network that Runs on Standard Browser",
66
"main": "./src/webpeer.js",

src/webpeer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2214,7 +2214,7 @@ const createWebPEER = async (configuration) => {
22142214
allowPublishToZeroTopicPeers: true,
22152215
msgIdFn: msgIdFnStrictNoSign,
22162216
ignoreDuplicatePublishError: true,
2217-
runOnLimitedConnection:config.CONFIG_RUN_ON_TRANSIENT_CONNECTION,
2217+
runOnLimitedConnection:true,
22182218
}),
22192219
identify: identify(),
22202220
ping: ping(),

0 commit comments

Comments
 (0)