src/utils.js
Function getCloseReasonDescription
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
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.';