noodlefrenzy/node-amqp10-transport-ws

View on GitHub

Showing 1 of 1 total issue

Function connect has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

WSTransport.prototype.connect = function (address, sslOptions) {
    // The subprotocol specified in extraHeaders is specific to Azure IoT Hub.
    var options = sslOptions ? sslOptions : {};
    if (!options.extraHeaders) options.extraHeaders = {};
    options.protocols = ['AMQPWSB10'];
Severity: Minor
Found in lib/index.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language