-
Notifications
You must be signed in to change notification settings - Fork 191
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
[Relay] Relay Singleton instance #438
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! much cleaner.
I just wonder if we should not require relay configuration separately, consider that wallet want to integrate sign and chat alongside wouldn't it be better if configuration looks as follows?:
- relay.configure(projectId etc.)
- chat.configure()
- sign.configure()
imo currently is better for only one sdk because we do not expose relay configuration but it will e quite weird if we require:
1 . chat.configure(projectId? etc)
2 . sign.configure(projectId? etc)
func didChangeSocketConnectionStatus(_ status: SocketConnectionStatus) { | ||
onConnected?() | ||
} | ||
class ClientDelegate { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, we do not depend on sign delegate anymore , so we could remove this class entirely.
maybe we can create an issue and do it at some point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ClientDelegate usage looks good in tests for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could subscribe for SignClients events only now
Description
Resolves #430 #431 #432
How Has This Been Tested?
Due Dilligence
Relay Client configuration walletconnect-docs#236