-
Notifications
You must be signed in to change notification settings - Fork 3
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
Changes to support upcoming GeminiLiveWebSocket transport #15
Changes to support upcoming GeminiLiveWebSocket transport #15
Conversation
@@ -6,7 +6,7 @@ open class RTVIClient { | |||
|
|||
private let options: RTVIClientOptions | |||
private var transport: Transport | |||
private var baseUrl: String | |||
private var baseUrl: String? // see RTVIClientParams for explanation of optionality |
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.
If I’m not mistaken, we have already removed this option from our JavaScript SDK.
Since you are already making changes, would it be worthwhile to remove it here as well now? Or should we include its removal as part of this task, along with a couple of other small refactors needed in our iOS SDK?
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.
Ah I see. Looks like in the JS SDK baseUrl
now lives nested under params
only and not at the "top level", is that right?
I wasn't necessarily looking to make any breaking changes with this PR; maybe we could save this cleanup for the next batch of work?
@@ -59,6 +59,17 @@ public struct RTVIMessageOutbound: Encodable { | |||
) | |||
} | |||
|
|||
// Decode action data, if this outbound message represents an action request. | |||
// This is useful for implementing transports that can intercept and handle action requests in their own way. | |||
public func decodeActionData() -> ActionRequest? { |
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.
Where are we using it ?
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.
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.
Just a couple of minor questions, but that I believe I will understand better when looking at the Gemini project. Other than that, all looks good.
Agree, it might be helpful to look at the Gemini transport to understand why the changes here are helpful. Let me know if you want to do a code walkthrough first before merging this! |
No description provided.