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

Allow PubkyClient and Homeserver to override default pkarr relay #59

Open
catch-21 opened this issue Nov 20, 2024 · 0 comments
Open

Allow PubkyClient and Homeserver to override default pkarr relay #59

catch-21 opened this issue Nov 20, 2024 · 0 comments

Comments

@catch-21
Copy link
Contributor

catch-21 commented Nov 20, 2024

// Initialize PubkyClient with Pkarr relay(s).
let client = new PubkyClient();

This currently forces use of https://relay.pkarr.org
used by pubky-app: https://github.com/pubky/pubky-core/blob/main/pubky/src/wasm.rs#L31

Homeserver is also using a hardcoded default: https://github.com/pubky/pubky-core/blob/main/pubky-homeserver/src/server.rs#L42, which is defined: https://github.com/pubky/pkarr/blob/main/pkarr/src/lib.rs#L32

It would be useful, for the automated tests at least, to allow pubky-app and the homeserver to be configured with a locally deployed pkarr relay.

@catch-21 catch-21 changed the title Allow PubkyClient to override default pkarr relay Allow PubkyClient and Homeserver to override default pkarr relay Nov 20, 2024
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

1 participant