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"} );