js-waku
js-waku copied to clipboard
Broadcasting not happening when multiple players more than 3 are added while using @waku/sdk
This is a bug report
Problem
When more than 3 users are added and subscribed broadcasting of messages happen randomly, certain users get the message and certain users doesn't get it and its been tested in a chrome.
waku version used is this: @waku/sdk": "^0.0.18"
and this is the line where the broadcasting of payload is been done.
const publicKeyMessageEncoder = createEncoder({ contentTopic: PublicKeyContentTopic, symKey: PublicKeyMessageEncryptionKey, ephemeral: true, });
await waku.relay.send(publicKeyMessageEncoder, { payload });
Hi @sbnair, While relay should work, note that js-waku has deprioritized the usage of relay in browser, and we recommend using light protocols (Light Push and Filter) instead of Relay
Can you please share more details around the messages received vs skipped? Are you able to identify any patterns, or is it completely randomized? It would be helpful if you can share the entire code snippet you use to spin your js-waku nodes. Perhaps a branch or a gist would suffice.