-
Notifications
You must be signed in to change notification settings - Fork 8
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
Migrate to b7a 1.0.3 and introduce basic auth for the hub service #70
Conversation
log:printWarn("error decoding topic, using the original form: " + topic + ". Error: " + decodedTopic.toString()); | ||
} | ||
|
||
if (topic != JSON_RESULTS_TOPIC) { |
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.
We need to support image sending too .. so user has to subscribe to both the JSON and the image.
See: #48
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.
We can fix this after merging this code.
if (remResult is error) { | ||
log:printError("error removing existing subscription for username: " + username, remResult); | ||
} | ||
updateUserCallback(username, callback); |
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.
Add a log showing that we added a new subscription and show the callback URL
|
||
if callbackMap.hasKey(username) { | ||
error? remResult = hubVar.removeSubscription(topic, callbackMap.get(username)); | ||
log:printInfo("Removing existing subscription for username: " + username); |
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.
Show the callback URL
$title.
To Do - persist registered callbacks vs username. - Done