         return (urlPolling, urlWebSocket)
     }
 
-    private func createWebsocketAndConnect(connect: Bool) {
+    private func createWebsocketAndConnect() {
         let wsUrl = urlWebSocket + (sid == "" ? "" : "&sid=\(sid)")
 
         ws = WebSocket(url: NSURL(string: wsUrl)!)

        ws?.delegate = self
        ws?.selfSignedSSL = selfSigned

        if connect {
            ws?.connect()
        }
    }
    
    public func didError(error: String) {

                }

                if !forcePolling && !forceWebsockets && upgradeWs {
                    createWebsocketAndConnect()
                }
                
                
