pasalino/fp-redux-websocket

View on GitHub
src/utils.js

Summary

Maintainability
A
0 mins
Test Coverage

Function getCloseReasonDescription has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

export const getCloseReasonDescription = (event: CloseEvent): string => {
  // See http://tools.ietf.org/html/rfc6455#section-7.4.1
  switch (event.code) {
    case 1000:
      return 'Normal closure, meaning that the purpose for which the connection was established has been fulfilled.';
Severity: Minor
Found in src/utils.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status