From 932728dd944cfd9b1e7bb5afa0c3aa74cd5e24aa Mon Sep 17 00:00:00 2001 From: Andrew Liang Date: Tue, 20 Nov 2018 16:18:43 -0500 Subject: [PATCH] Use the AMQPS port 5671 of `dd.weather.gc.ca` The AMQP port 5672 is now closed. Confirmed with a maintainer of `MetPX/sarracenia` that 5671 will remain open --- README.md | 2 +- index.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 57fc54d..f805f31 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/index.js b/index.js index acce375..1d022eb 100644 --- a/index.js +++ b/index.js @@ -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 = "#"; @@ -75,6 +75,7 @@ function listen(options) { password: amqp_password, heartbeat: AMQP_HEARTBEAT, clientProperties: {applicationName: APPLICATION, version: VERSION}, + ssl: {enabled: true}, }, {reconnectBackoffStrategy: "exponential"} );