Closed UladzimirTrehubenka closed 2 weeks ago
we don't recommend using SignalClient by itself outside of the SDK itself. what is your use case?
Custom app server: mobile -> app server -> livekit instead direct mobile -> livekit
Is it possible to add something like
func (c *SignalClient) JoinWithAutoSubscribe(urlPrefix string, token string, autoSubscribe bool) (*livekit.JoinResponse, error) {
params := connectParams{AutoSubscribe: autoSubscribe}
return c.Join(urlPrefix, token, params)
}
This is how we are using v2 for now with patch vendor folder during build.
in that case, I think it's ok to make connectParams public. would you like to open a PR renaming it to SignalClientConnectParams
?
@davidzhao could you please add reviewers?
@davidzhao any progress?
Observed during migrate from v1.1.8 to v2.2.1:
in #392 we can see that
became
So for now function Join() cannot be used outside (only inside the SDK itself), actually this is broken design - how exported method would use private structure?!