Skip to content

Commit 7b3189d

Browse files
committed
docs : update
1 parent f34370b commit 7b3189d

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# webConnect.js
2-
📶 WebRTC peer-to-peer connection without signaling server
2+
📶 Auto WebRTC peer-to-peer connection
33

44
[![npm version](https://badge.fury.io/js/webconnect.svg)](https://www.npmjs.com/package/webconnect)
55

@@ -11,26 +11,26 @@ I got tired of building and maintenance signaling server for my WebRTC projects
1111

1212
## How it works?
1313

14-
A direct browser to browser connection for static client side web pages is normally impossible. Previously, the solution available was using WebRTC transport, which still required to setup a signaling server as a middleman. This library works by leveraging already established P2P networks, such as IPFS Network or Torrent Network for signaling, eliminating the need for backend servers forever. Now static web pages can talk to each other, even hosts on static hosting such as github pages, cloudflare pages, gitlab pages, netlify or localhost.
14+
A direct browser to browser connection for static client side web application is normally impossible. Currently, the solution available was using WebRTC transport, which still required to setup a signaling server as a middleman. This library works by leveraging already established public protocol, such as Torrent, MQTT and NOSTR for signaling, eliminating the need for backend servers forever. Now static client side web application can talk to each other, even hosts on static hosting such as github pages, cloudflare pages, gitlab pages, netlify or any other static hosting even on local host.
1515

1616
## Features
1717

18-
*Bypass NAT
19-
*Bypass VPN
18+
*Auto p2p WebRTC connection
19+
*Zero configuration for local network connection
2020

2121
## Installation
2222

2323
CDN
2424
```javascript
25-
<script src="https://cdn.jsdelivr.net/npm/webconnect@0.0.9/dist/umd/webconnect.js"></script>
25+
<script src="https://cdn.jsdelivr.net/npm/webconnect@0.0.10/dist/umd/webconnect.js"></script>
2626
```
2727
```javascript
2828
<script type="module">
29-
import webconnect from 'https://cdn.jsdelivr.net/npm/webconnect@0.0.9/dist/esm/webconnect.js'
29+
import webconnect from 'https://cdn.jsdelivr.net/npm/webconnect@0.0.10/dist/esm/webconnect.js'
3030
</script>
3131
```
3232

33-
Browserify
33+
Browserify / NPM
3434
```javascript
3535
npm install webconnect
3636

@@ -113,7 +113,7 @@ connect.getConnection((attribute) => console.log(`${attribute.connection}`))
113113
## Example
114114
```javascript
115115
<script type="module">
116-
import webconnect from 'https://cdn.jsdelivr.net/npm/webconnect@0.0.9/dist/esm/webconnect.js'
116+
import webconnect from 'https://cdn.jsdelivr.net/npm/webconnect@0.0.10/dist/esm/webconnect.js'
117117

118118
const connect = webconnect({})
119119
connect.onConnect(async(attribute)=>{
@@ -234,7 +234,7 @@ getMyId((attribute) => {})
234234
```javascript
235235
getConnection((attribute) => {})
236236
```
237-
- `attribute = {connection}` - `connection` is Array of all connection identity exclude self connection identity
237+
- `attribute = {connection,connections}` - `connection` is Array of all connection identity exclude self connection identity - `connections` is [RTCPeerConnection](https://nuzulul.github.io/webConnect.js/demo/) object
238238

239239
### Get latency of connection which return a promise that resolve to milliseconds
240240

@@ -252,4 +252,8 @@ Disconnect()
252252

253253
## License
254254

255-
[MIT](https://github.com/nuzulul/webConnect.js/blob/main/LICENSE)
255+
[MIT](https://github.com/nuzulul/webConnect.js/blob/main/LICENSE)
256+
257+
## Maintainers
258+
259+
[Nuzulul Zulkarnain](https://github.com/nuzulul)

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<body>
1212
<ul id="myList"></ul>
1313
<script type="module">
14-
import webconnect from 'https://cdn.jsdelivr.net/npm/webconnect@0.0.9/dist/esm/webconnect.js'
14+
import webconnect from 'https://cdn.jsdelivr.net/npm/webconnect@0.0.10/dist/esm/webconnect.js'
1515

1616
const connect = webconnect({})
1717

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "webconnect",
3-
"version": "0.0.9",
4-
"description": "📶 WebRTC peer-to-peer connection without signaling server",
3+
"version": "0.0.10",
4+
"description": "📶 Auto WebRTC peer-to-peer connection",
55
"main": "dist/umd/webconnect.js",
66
"module": "dist/esm/webconnect.js",
77
"exports": {

src/webconnect.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Copyright Nuzulul Zulkarnain. Released under The MIT License.
2+
//! webConnect.js -- https://github.com/nuzulul/webConnect.js
13
import * as joinRoomTORRENT from 'trystero'
24
import * as joinRoomNOSTR from 'trystero/nostr'
35
import * as joinRoomMQTT from 'trystero/mqtt'

0 commit comments

Comments
 (0)