title: Use value of superclass in instance in Swift
body: <p>I am trying to write a chat application and I am using SignalR for this. I recently started to refactor the code to use a handler for the SignalR/SwiftR functions. I am creating an instance, when I call the SignalR handler from the chat viewController. Now I have a function, which is triggered inside the handler instance and from there I am trying to execute a function in the viewController. I tried to do this with an instance. But now I don't have any data in my arrayMessage because I am creating a new instance of the class. Is there a way to get the array of the normal class?</p>
  
  <p>If not, what's the best way to execute this function?</p>
  
  <p>This should execute the recieveMessage:</p>
  
  <pre><code> chatHub.on("CommunityMessage") { args in
              if let m: AnyObject = args![0] as AnyObject!{
              SignalRViewController.instance.recieveMessage(m: m)
              }
          }
  </code></pre>
  
  <p>recieveMessage function, where I don't have data in the arrayMessage:</p>
  
  <pre><code>     func recieveMessage(m : AnyObject){
          let message = m.object(forKey: "Message") as! String
          let index = (self.arrayMessage.count - 1)
          print(self.arrayMessage)
       }
  </code></pre>