 
             completion?(finish: true)
 
-        } catch _ {
-            delegate?.fayeClient(self, didFailDeserializeMessage: message)
+        } catch let error as NSError {
+            delegate?.fayeClient(self, didFailDeserializeMessage: message, withError: error)
 
             completion?(finish: false)
         }

    }
}

// MARK: - SRWebSocket

extension FayeClient {

        }
    }

    public func webSocket(webSocket: SRWebSocket!, didFailWithError error: NSError!) {

        connected = false

        clearSubscriptions()

        delegate?.fayeClient(self, didFailWithError: error)

        reconnect()
    }


}

