From 4cac3a88ba4f170b3a41ca3e5654be729fa01b99 Mon Sep 17 00:00:00 2001 From: Bill Brock Date: Sun, 8 May 2016 12:36:01 -0400 Subject: [PATCH] Updated ViewController _Why_? The project would not build... In the chan.on("error") block we were referencing self.chat.text rather than self.chatWindow.text. _How_? replaced the reference to self.chat.text with self.chatWindow.text _Side Effects_? seems to be operational, however I'm gettign kicked off of the phoenix chat server after about 30 seconds. I wonder if this has to do with the previous commit that relates to the heartbeat --- Example/SwiftPhoenixClient/ViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Example/SwiftPhoenixClient/ViewController.swift b/Example/SwiftPhoenixClient/ViewController.swift index 56f4829..5fc9151 100644 --- a/Example/SwiftPhoenixClient/ViewController.swift +++ b/Example/SwiftPhoenixClient/ViewController.swift @@ -60,8 +60,8 @@ class ViewController: UIViewController { return } let newMessage = "[ERROR] \(body!)\n" - let updatedText = self.chat.text.stringByAppendingString(newMessage) - self.chat.text = updatedText + let updatedText = self.chatWindow.text.stringByAppendingString(newMessage) + self.chatWindow.text = updatedText } } }