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

Use relay node with integrated signalling and connection improvements #303

Merged
merged 6 commits into from
Feb 2, 2023

Conversation

nikugogoi
Copy link
Collaborator

@nikugogoi nikugogoi commented Jan 25, 2023

Part of #289

  • Requires changes in js-libp2p to successfully close connections
  • Ensure connection with all remote peers on network interrupt
    • Hangup peer connections if heartbeat check fails
    • Browser peers reconnect on discovery
  • Fix multiple connections between two peers
    • Prioritize direct webrtc connection between peers
  • Use cerc-io/webrtc-direct protocol having peer signalling integrated into the relay node

@nikugogoi nikugogoi self-assigned this Jan 25, 2023
@nikugogoi nikugogoi changed the title [WIP] Ensure connection with all remote peers on network interrupt [WIP] Fix connection issues between peers Jan 27, 2023
@nikugogoi nikugogoi changed the title [WIP] Fix connection issues between peers [WIP] Improvements in connection between peers Feb 1, 2023
nikugogoi and others added 5 commits February 2, 2023 18:23
* Close existing connection

* Fix closing existing connections

* Close new connections from only peer

* Refresh in intervals to update UI stats
* Prioritize direct webrtc connection between peers

* Close event listener and add comment
… node (#307)

* Use webrtc-direct transport with pubsub based discovery

* Use changes to integrate signalling using relay node

* Add an indicator for peer connection type (direct/relayed)

* Catch errors while creting a libp2p node

* Catch errors while dialling peers

* Catch errors when dialling from relay node

* Pass CLI arg for port to listen on for relay node

* Subscribe chat CLI to pubsub topic

* Update yarn lockfile

* Update webrtc-direct dependency in package json

* Update webrtc-direct version

* Update yarn lockfile
@prathamesh0 prathamesh0 changed the title [WIP] Improvements in connection between peers Improvements in connection between peers Feb 2, 2023
@prathamesh0 prathamesh0 changed the title Improvements in connection between peers Use relay node with integrated signalling and connection improvements Feb 2, 2023
@prathamesh0 prathamesh0 changed the title Use relay node with integrated signalling and connection improvements [WIP] Use relay node with integrated signalling and connection improvements Feb 2, 2023
@prathamesh0 prathamesh0 changed the title [WIP] Use relay node with integrated signalling and connection improvements Use relay node with integrated signalling and connection improvements Feb 2, 2023
@ashwinphatak ashwinphatak merged commit f5ff7cc into main Feb 2, 2023
@ashwinphatak ashwinphatak deleted the ng-conn-improv branch February 2, 2023 14:20
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.

3 participants