Skip to content

Conversation

@filipi87
Copy link
Collaborator

@filipi87 filipi87 commented Aug 27, 2024

  • Allowing the sandbox connect directly to the server using daily api key from the environment.
  • Removing daily-js dependency that should not be needed by rtvi-client-js
  • Fixed some lint warnings

@filipi87 filipi87 changed the title Prepare for rn Fixing couple of warnings and making sandbox work directly with staging. Aug 27, 2024
@filipi87 filipi87 marked this pull request as ready for review August 27, 2024 21:36
}

export class DailyTransport extends Transport {
protected _state: TransportState = "idle";
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed this variable from here, because it is already declared inside the abstract class Transport.

this._abortController!
);
} else {
// @ts-ignore
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I keep seing this error in my IDE:

Argument type {mode: "cors", headers: {'Content-Type': string}, method: string, body: string, signal: AbortSignal | null} is not assignable to parameter type RequestInit | undefined 

So, I have added it just as a workaround to stop it while I was looking at the other warnings. But I was not supposed to have commited this one.
I need to figure out why is it complaining, because it seems that everything works just fine.

* @returns VoiceClientConfigOption[] - Updated configuration
*/
protected set config(config: VoiceClientConfigOption[]) {
public set config(config: VoiceClientConfigOption[]) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one, I was receiving a warning, regarding different access modifiers for the get and set.

But that is probably an issue from my IDE, I was just looking at this PR, and it seems it is supposed to work without any kind of warning:
microsoft/TypeScript#42425

Set accessors may be less visible than their corresponding get.

So we should remove this change for sure.

@filipi87
Copy link
Collaborator Author

Closing this PR, all the relevant changes will be included at this branch: jpt/0.1.7

@filipi87 filipi87 closed this Aug 28, 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

Successfully merging this pull request may close these issues.

2 participants