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

Fix missing SUBSCRIBE and refactor #6

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

mxinden
Copy link
Member

@mxinden mxinden commented Mar 29, 2023

Creating as pull request until libp2p/github-mgmt#140 is merged.

Depend on latest commits on libp2p/rust-libp2p#3625 more specifically
libp2p/rust-libp2p@b572895 resolving the missing SUBSCRIBE message previously not send by a rust-libp2p server.

Additional refactorings:

  • Use clap to parse command line arguments. Among other things gives us nice help text and better error messages.
  • Depend on libp2p-webrtc directly as we will remove the re-export from libp2p.
  • Use futures-timer to send Hello World on a 2 second interval instead of on each SwarmEvent.
  • Redo logging on various levels (warn, info, debug).

Depend on latest commits on libp2p/rust-libp2p#3625 more
specifically
libp2p/rust-libp2p@b572895
resolving the missing SUBSCRIBE message previously not send by a rust-libp2p server.

Additional refactorings:

- Use clap to parse command line arguments. Among other things gives us nice
help text and better error messages.
- Depend on `libp2p-webrtc` directly as we will remove the re-export from
`libp2p`.
- Use `futures-timer` to send `Hello World` on a 2 second interval instead of on
each `SwarmEvent`.
- Redo logging on various levels (warn, info, debug).
@vercel
Copy link

vercel bot commented Mar 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
universal-connectivity ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 29, 2023 at 1:53PM (UTC)

@mxinden mxinden mentioned this pull request Mar 29, 2023
1 task
@p-shahi p-shahi merged commit 357f08e into libp2p:rust-server Mar 29, 2023
@p-shahi
Copy link
Member

p-shahi commented Mar 29, 2023

Merged

thomaseizinger pushed a commit to thomaseizinger/universal-connectivity that referenced this pull request Sep 22, 2023
2color added a commit that referenced this pull request Sep 17, 2024
* feat: direct messages (#5)

* chore: use Libp2pType

* feat: add direct messaging as a custom service

* chore: move init of directmessage handler

* fix: add await to dm receive

* chore: small simplification (#6)

* chore: small simplification

* chore: remove from field which can be derived

---------

Co-authored-by: Daniel N <[email protected]>

* chore: signals

* chore: remove menu, add popover

* chore: move markAsRead to hook

* chore: wrap dm receive in try catch

---------

Co-authored-by: Daniel Norman <[email protected]>
Co-authored-by: Daniel N <[email protected]>
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.

2 participants