Skip to content

WIP: Using rust-nostr LocalRelay for testing#35

Draft
f321x wants to merge 1 commit intomasterfrom
built-in-relay
Draft

WIP: Using rust-nostr LocalRelay for testing#35
f321x wants to merge 1 commit intomasterfrom
built-in-relay

Conversation

@f321x
Copy link
Copy Markdown
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