Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

enable ssl client connections to brokers (#334) #383

Merged
merged 10 commits into from
Jun 29, 2016

Conversation

CharlesWall
Copy link
Contributor

Implement ssl socket for client/broker connections. only works with +0.9

self.brokerProfiles[addr] = brokerProfile;
if (self.ssl) {
var sslAddress = brokerProfile.endpoints.find(function(endpoint) {
return endpoint.startsWith('SSL://');
Copy link
Collaborator

Choose a reason for hiding this comment

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

this won't work in 0.12.14 and below.

return new Client(host, clientId, undefined, undefined, sslOptions);
}

describe(suiteName, function () {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

everything after this is just indenting to put it inside of the forEach above.

@hyperlink
Copy link
Collaborator

Feedback on this PR @haio or @estliberitas ?

@hyperlink hyperlink merged commit 46ad80a into SOHU-Co:master Jun 29, 2016
@hyperlink
Copy link
Collaborator

Thank you for your contribution @CharlesWall !

@hyperlink hyperlink added this to the v0.5.0 milestone Jun 29, 2016
@hyperlink hyperlink self-assigned this Jun 29, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants