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

Improvements to the Go daemon #5

Closed
3 tasks
2color opened this issue Mar 29, 2023 · 1 comment
Closed
3 tasks

Improvements to the Go daemon #5

2color opened this issue Mar 29, 2023 · 1 comment
Assignees

Comments

@2color
Copy link
Collaborator

2color commented Mar 29, 2023

From our testing, we can confirm that the Go chat daemon can exchange messages with the frontend.

To make it more suitable for deployment and cleaner, we need to make the following changes:

  • Enable a persistent PeerID, either via an env var or serialised as a file. This is to ensure that the PeerId doesn't change on every reload. We need this because we will hard code at least one PeerID into the frontend to make sure "it just works" on load.
  • Instead of logging every system logs into the chat window, create a split view for the system logs
  • Publish messages directly without json
@TheDiscordian
Copy link
Collaborator

  1. Going to keep PeerID via this: https://github.com/TheDiscordian/go-libp2p-relay-daemon/blob/master/identity.go#L10
  2. Will either do a split view or to file (attempting split view first)
  3. 👍

@2color 2color closed this as completed Mar 30, 2023
thomaseizinger pushed a commit to thomaseizinger/universal-connectivity that referenced this issue Sep 22, 2023
2color pushed a commit that referenced this issue Jul 24, 2024
@2color 2color mentioned this issue Jul 24, 2024
2color added a commit that referenced this issue 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 <2color@users.noreply.github.com>

* chore: signals

* chore: remove menu, add popover

* chore: move markAsRead to hook

* chore: wrap dm receive in try catch

---------

Co-authored-by: Daniel Norman <1992255+2color@users.noreply.github.com>
Co-authored-by: Daniel N <2color@users.noreply.github.com>
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

No branches or pull requests

2 participants