-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
feat: expose Realtime options on SupabaseClient #377
Conversation
Provide a means to configure RealtimeV2 options
Hi @bryandubno this is a nice addition, is there anything I can help to move it forward? What is missing? |
Thanks @grdsdev – I just haven't had a chance to run or add any additional unit tests. If you're able to help on that front, I believe this would be ready for review! I do also wonder if it would be better to add to |
self.connectOnSubscribe = connectOnSubscribe | ||
} | ||
} | ||
|
||
public struct Configuration: Sendable { |
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.
This might be better marked as internal
given it's not intended to be accessed by consumers
@@ -26,26 +48,22 @@ public actor RealtimeClientV2 { | |||
var disconnectOnSessionLoss: Bool | |||
var connectOnSubscribe: Bool | |||
var logger: (any SupabaseLogger)? | |||
|
|||
public init( |
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.
This also might be better marked as internal
given it's not intended to be accessed by consumers
Yes please, let's add it to SupabaseClientOptions under a |
@bryandubno I've made a few changes to your code and also updated tests. |
Fantastic! I appreciate you pushing this through! |
What kind of change does this PR introduce?
Exposes public Realtime configuration options.
What is the current behavior?
Realtime configuration options are public, but cannot be configured by the client.
What is the new behavior?
Realtime configuration options can now be set by the client.
Additional context
This is not ready to be merged. Tests need to be updated.