Skip to content

Commit

Permalink
Merge pull request #7 from darkskyapp/use-amqps
Browse files Browse the repository at this point in the history
Use the AMQPS port 5671 of `dd.weather.gc.ca`
  • Loading branch information
Andrew Liang authored Nov 21, 2018
2 parents 4232b36 + 932728d commit 500da51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Usage
properties defined:

* `amqp_host` (defaults to `"dd.weather.gc.ca"`): the AMQP server host.
* `amqp_port` (defaults to `5672`): the AMQP server port.
* `amqp_port` (defaults to `5671`): the AMQPS server port.
* `amqp_user` (defaults to `"anonymous"`): the AMQP server username.
* `amqp_password` (defaults to `"anonymous"`): the AMQP server password.
* `amqp_subtopic` (defaults to `"#"`): the event subtopic, used to filter
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function random_string() {
function listen(options) {
// Determine configurable parameters.
let amqp_host = "dd.weather.gc.ca";
let amqp_port = 5672;
let amqp_port = 5671;
let amqp_user = "anonymous";
let amqp_password = "anonymous";
let amqp_subtopic = "#";
Expand Down Expand Up @@ -75,6 +75,7 @@ function listen(options) {
password: amqp_password,
heartbeat: AMQP_HEARTBEAT,
clientProperties: {applicationName: APPLICATION, version: VERSION},
ssl: {enabled: true},
},
{reconnectBackoffStrategy: "exponential"}
);
Expand Down

0 comments on commit 500da51

Please sign in to comment.