noodlefrenzy/node-amqp10-transport-ws

View on GitHub
lib/index.js

Summary

Maintainability
A
1 hr
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status