Skip to content
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: Send client key in the connect operation #118

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JoshuaBradbury
Copy link

For parse setups that use a client key, the live query client will never connect appropriately as the android library doesn't pass in the client key.

See: parse-community/ParseLiveQuery-iOS-OSX#136

@mtrezza mtrezza requested a review from a team December 22, 2022 18:30
@mtrezza
Copy link
Member

mtrezza commented Dec 22, 2022

Thanks for this PR, it even includes a test - amazing! Let's wait for another review, and when the CI passes, it should be good to merge.

Unfortunately this repo has not been upgraded to auto-release yet and still uses TravisCI. That's something we have to look into as well to release a version with this feature. See #122

@mtrezza mtrezza changed the title Added support for sending the client key in the connect operation feat: Send client key in the connect operation Dec 22, 2022
@parse-github-assistant
Copy link

Thanks for opening this pull request!

  • ❌ Please edit your post and use the provided template when creating a new pull request. This helps everyone to understand your post better and asks for essential information to quicker review the pull request.

Copy link

@azlekov azlekov left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +433 to +440
parseLiveQueryClient = ParseLiveQueryClient.Factory.getClient(new URI(""), new WebSocketClientFactory() {
@Override
public WebSocketClient createInstance(WebSocketClient.WebSocketClientCallback webSocketClientCallback, URI hostUrl) {
TestParseLiveQueryClient.this.webSocketClientCallback = webSocketClientCallback;
webSocketClient = mock(WebSocketClient.class);
return webSocketClient;
}
}, new ImmediateExecutor());
Copy link

Choose a reason for hiding this comment

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

Is there any reason why you explicitly change the instance from @Before?

The initialization looks same to me.

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.

None yet

3 participants