                 self.ctrl?.tableView.delegate = self
             }
             break
+        case is OnDisconnect:
+            self.onDisconnect(msg as! OnDisconnect)
             
         default:
             super.receive(msg)

        cell.detailTextLabel?.text = s.1.description
        return cell
    }

    override public func receive(msg: Message) {
        switch(msg) {

                self.ctrl?.title = "Connected"
                self.ctrl?.navigationItem.prompt = nil
                self.ctrl?.textField.becomeFirstResponder()
                self.become(self.connected)
            }
            break
            
        case is Disconnect:
            wsClient ! Disconnect(sender: this)
            break
            
        case is SetWSController:
