             log.debug("disconnected")
         case .text(let text):
             log.debug("text: \(text)")
-            decodeChat(text: text)
+            processChat(text: text)
         case .binary(_):
             log.debug("binary")
         case .pong(_):

        }
        switch sessionType {
        case .chrome:
            CookieUtility.requestBrowserCookie(
                browserType: .chrome,
                completion: cookieCompletion)
        case .safari:
            CookieUtility.requestBrowserCookie(
                browserType: .safari,
                completion: cookieCompletion)
        case .login(let mail, let password):
            CookieUtility.requestLoginCookie(
                mailAddress: mail,
                password: password,
                completion: cookieCompletion)
        }
    }


            return
        }

        // 5. Ok, there's no cookie available, go get it..
        let completion = { (userSessionCookie: String?) -> Void in
            log.debug("Cookie result: [\(sessionType)] [\(userSessionCookie ?? "-")]")
            guard let userSessionCookie = userSessionCookie else {
                let reason = "No available cookie."
