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

Dn reliable websockets #7 #8

Merged
merged 10 commits into from
Oct 21, 2019
Merged

Dn reliable websockets #7 #8

merged 10 commits into from
Oct 21, 2019

Conversation

dnhuch
Copy link
Contributor

@dnhuch dnhuch commented Oct 9, 2019

Add support for acknowledging events for reliable resources and create persistent/reconnectable subscriptions

Comment on lines 1394 to 1395
* Un
* s to all current subscriptions by closing the WebSocket to the Vantiq
Copy link
Contributor

Choose a reason for hiding this comment

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

accidental typo here, I think.

Copy link

@JakeSchmitz JakeSchmitz left a comment

Choose a reason for hiding this comment

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

LGTM, just a few minor nits, but once those are addressed this is good to go!

}

/**Acknowledge the receipt of a reliable message*/

Choose a reason for hiding this comment

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

to be consistent with the other method comments this should be multiline:

/**
    Acknowledge the receipt of a reliable message
*/

this.accessToken = accessToken;
}
}
public void subscribe(String path, SubscriptionCallback callback, Map<String, Object> parameters) {

Choose a reason for hiding this comment

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

newline between the end of the class def and function def please

@BeforeClass
public static void setUpIntgTest() throws Exception {
// Pull values from java properties, so the credentials are not checked in
server = System.getProperty("server");
username = System.getProperty("username");
password = System.getProperty("password");

if(server == null || username == null || password == null) {

Choose a reason for hiding this comment

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

Leave this check in, just extend it to also check the token

vantiq.authenticate(username, password, handler);
if (!username.equals("") && !password.equals("")) {
vantiq.authenticate(username, password);
} else {

Choose a reason for hiding this comment

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

This doesn't account for if the token wasn't specified

@dnhuch dnhuch merged commit ddc254e into master Oct 21, 2019
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.

3 participants