-
-
Notifications
You must be signed in to change notification settings - Fork 32
feat: Send client key in the connect operation #118
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
base: master
Are you sure you want to change the base?
feat: Send client key in the connect operation #118
Conversation
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 |
Thanks for opening this pull request!
|
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.
LGTM
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()); |
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.
Is there any reason why you explicitly change the instance from @Before
?
ParseLiveQuery-Android/ParseLiveQuery/src/test/java/com/parse/TestParseLiveQueryClient.java
Line 56 in a285cf8
public void setUp() throws Exception { |
The initialization looks same to me.
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