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

WIP: Using rust-nostr LocalRelay for testing #35

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

f321x
Copy link
Owner

@f321x f321x commented Oct 3, 2024

Some experimentation RE #23 with the rust-nostr nostr-relay-builder crate. But it seems like there are still problems as i constantly keep getting
[2024-10-03T22:59:22Z WARN nostr_relay_builder::local::internal] WebSocket protocol error: No "Connection: upgrade" header when trying to connect and connections close after a couple of seconds.
The relay is constructed from the default builder like this:

    let builder = RelayBuilder::default();
    let local_relay = LocalRelay::run(builder)
        .await
        .context("Failed to start local relay")?;

The nostr-relay-builder is explicitly stated as alpha version and the crates.io version is different from the repository, so its probably best to let it mature a bit first.

@f321x f321x added the testing For test aspects. label Oct 3, 2024
@f321x f321x self-assigned this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing For test aspects.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant