     open func disconnect() {
         if self.connectionState == .connected {
             intentionalDisconnect = true
-            self.reachability?.stopNotifier()
             updateConnectionState(to: .disconnecting)
             self.socket.disconnect()
         }

import Foundation
import Reachability
import NWWebSocket

// swiftlint:disable file_length type_body_length

        } else {
            updateConnectionState(to: .connecting)
            self.socket.connect()
        }
    }

