js-waku-examples/examples/noise-rtc
Sasha 7526e205e2
chore: update waku deps (#261)
* update waku deps

* update craco

* update light-chat

* up light-js

* up noise-js

* up noise-rtc

* up relay-js

* up react relay

* up rln-js

* up store-js

* up store react

* up protons deps for web chat
2023-08-07 13:15:01 +02:00
..
.DS_Store PoC of WebRTC signalling exchange through @waku/noise (#186) 2023-01-27 23:09:13 +01:00
README.md PoC of WebRTC signalling exchange through @waku/noise (#186) 2023-01-27 23:09:13 +01:00
favicon.ico PoC of WebRTC signalling exchange through @waku/noise (#186) 2023-01-27 23:09:13 +01:00
favicon.png PoC of WebRTC signalling exchange through @waku/noise (#186) 2023-01-27 23:09:13 +01:00
index.html chore: noise-js and noise-rtc style issues and configuration 2023-01-27 23:46:36 +01:00
index.js feat: use @waku/sdk for basic examples (#241) 2023-06-21 00:25:25 +02:00
manifest.json PoC of WebRTC signalling exchange through @waku/noise (#186) 2023-01-27 23:09:13 +01:00
package-lock.json chore: update waku deps (#261) 2023-08-07 13:15:01 +02:00
package.json chore: update waku deps (#261) 2023-08-07 13:15:01 +02:00
webpack.config.js fix: noise-rtc copy of artefacts 2023-01-28 02:09:40 +01:00

README.md

State of this example: work in progress

What's done:

  • By using js-noise users can establish secure communication channel.
  • This channel is used to exchange offer/answer to initiate direct WebRTC connection.

What should be done:

  • STUN server: in order not to loose benefits of peer-to-peer protocols used underneath we should find a way to be able to retrieve coordinates of a user to build offer/answer by not involving one STUN server for it;
  • TURN server: similarly to prev point we should be able to cover a need to create WebRTC connection for users who are behind secure NAT and are not able to communicated just as it is.

Additional reading that explains why STUN/TURN is not easily removable from the equation: https://github.com/libp2p/specs/pull/497/files#diff-2cb0b0dcc282bd123b21f5a0610e8a01b516fc453b95c655cf7e16734f2f7b11R48-R53