                 self.fayeClientId = messageDict["clientId"].stringValue
                 if(messageDict["successful"].int == 1){
                     
-                    self.delegate?.connectedToServer?()
+                    self.delegate?.connectedToServer()
                     self.fayeConnected = true;
                     self.connect()
                     self.subscribeQueuedSubscriptions()

                if(messageDict["successful"].int == 1){
                    self.fayeConnected = false;
                    self.transport?.closeConnection()
                    self.delegate?.disconnectedFromServer?()
                }else{
                    // OOPS
                }

                    if let subscription = messageJSON[0]["subscription"].string{
                        self.pendingSubscriptions.removeObject(subscription)
                        self.openSubscriptions.addObject(subscription)
                        self.delegate?.didSubscribeToChannel(subscription)
                    }else{
                        print("Missing subscription for Subscribe")
                    }
                }else{
                    // Subscribe Failed
                    if let error = messageJSON[0]["error"].string{
                        self.delegate?.subscriptionFailedWithError(error)
                    }
                }
            case BayeuxChannel.UNSUBSCRIBE_CHANNEL.description:
