Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add webRTC transport #1338

Closed
wants to merge 3 commits into from
Closed

feat: add webRTC transport #1338

wants to merge 3 commits into from

Conversation

weboko
Copy link
Collaborator

@weboko weboko commented May 9, 2023

Problem

As of now only transport available is webSocets.

Solution

Add webrtc trasnport and enable p2p-circuit protocol to enable rtc exchange.

Notes

@github-actions
Copy link

github-actions bot commented May 9, 2023

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
Waku core 122.05 KB (-0.06% 🔽) 2.5 s (-0.06% 🔽) 5.2 s (+49.01% 🔺) 7.6 s
Waku default setup 422.39 KB (+7.04% 🔺) 8.5 s (+7.04% 🔺) 15.1 s (+121.99% 🔺) 23.5 s
ECIES encryption 28.02 KB (0%) 561 ms (0%) 3.1 s (+38.88% 🔺) 3.7 s
Symmetric encryption 28.03 KB (0%) 561 ms (0%) 2.7 s (+164.14% 🔺) 3.3 s
DNS discovery 108.08 KB (-0.15% 🔽) 2.2 s (-0.15% 🔽) 4.5 s (+5.64% 🔺) 6.7 s
Privacy preserving protocols 118.9 KB (-0.06% 🔽) 2.4 s (-0.06% 🔽) 5 s (+47.91% 🔺) 7.3 s
Light protocols 120.79 KB (-0.05% 🔽) 2.5 s (-0.05% 🔽) 4.4 s (-0.05% 🔽) 6.8 s
History retrieval protocols 120.8 KB (-0.06% 🔽) 2.5 s (-0.06% 🔽) 5.3 s (+42.69% 🔺) 7.7 s
Deterministic Message Hashing 5.78 KB (0%) 116 ms (0%) 604 ms (+4.57% 🔺) 720 ms

"@libp2p/websockets": "^5.0.3",
"@waku/core": "0.0.17",
"@waku/dns-discovery": "0.0.11",
"libp2p": "^0.42.2"
"libp2p": "^0.43.0"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@libp2p/webrtc is compatible with 0.43.0 only

@weboko
Copy link
Collaborator Author

weboko commented Aug 7, 2023

Will be configured inside example ad-hoc waku-org/examples.waku.org#260

@weboko weboko closed this Aug 7, 2023
@weboko weboko deleted the weboko/webrtc branch August 7, 2023 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant