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

Is the relayServerUrl Still Necessary? #37

Open
ecoin-finance opened this issue Dec 19, 2024 · 2 comments
Open

Is the relayServerUrl Still Necessary? #37

ecoin-finance opened this issue Dec 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ecoin-finance
Copy link

Hi, I previously implemented the old kotlin v2 library, and now I'm updating to the new one by Reown. However, I noticed that the documentation no longer mentions the following feature:

In my implementation, I am using "relayServerUrl"
wss://relay.walletconnect.com?projectId=$projectId

image

In the new documentation do not show more this:

I couldn't find any references to this in the updated documentation. Is it no longer necessary? Or has the URL changed to align with a new domain? If so, where can I find the updated details? Thank you!

image

@ecoin-finance ecoin-finance added the bug Something isn't working label Dec 19, 2024
Copy link

linear bot commented Dec 19, 2024

@jakubuid
Copy link
Collaborator

jakubuid commented Jan 7, 2025

Hey, there's a new init function where you can pass just a projectId and the Relay URL is constructed internally. The previous init function is still there and you can use it according to your preferences:

1:

   fun initialize(
        metaData: Core.Model.AppMetaData,
        relayServerUrl: String,
        connectionType: ConnectionType = ConnectionType.AUTOMATIC,
        application: Application,
        relay: RelayConnectionInterface? = null,
        keyServerUrl: String? = null,
        networkClientTimeout: NetworkClientTimeout? = null,
        telemetryEnabled: Boolean = true,
        onError: (Core.Model.Error) -> Unit,
    )

2:

fun initialize(
        application: Application,
        projectId: String,
        metaData: Core.Model.AppMetaData,
        connectionType: ConnectionType = ConnectionType.AUTOMATIC,
        relay: RelayConnectionInterface? = null,
        keyServerUrl: String? = null,
        networkClientTimeout: NetworkClientTimeout? = null,
        telemetryEnabled: Boolean = true,
        onError: (Core.Model.Error) -> Unit,
    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants