waku-org / js-waku

JavaScript implementation of Waku v2
https://js.waku.org
Apache License 2.0
162 stars 41 forks source link

[Epic] waku relay (browser) #14

Closed D4nte closed 3 years ago

D4nte commented 3 years ago

Problem

See #13. Dapps and wallets are web apps running in desktop and mobile browser.

Solution

To enable developers using waku relay as a communication protocol, js-waku needs to support browser environment.

Acceptance Criteria

Steps

D4nte commented 3 years ago

Blocker when trying to integrated waku in the react web app: https://github.com/libp2p/js-libp2p/issues/909

Several ways to move forward

  1. Wait for libp2p 0.31 release
  2. Use resolutions with npm-force-resolutions but it failed to override the versions. TODO: Try again without **/
  3. Use resolutions with yarn, however migrating to yarn failed because of ts-proto

At this stage, I am going to aim for 1. In the meantime, I can create a WakuMock and move forward with the react app and then replace the WakuMock once 1 is done or spend more time on workarounds.

D4nte commented 3 years ago

Note that for 3, ts-proto 1.79.3 should fix the issue: https://github.com/stephenh/ts-proto/pull/275