         if forceWebsockets {
             polling = false
             websocket = true
-            createWebsocket(andConnect: true)
+            createWebsocketAndConnect(true)
             return
         }
 

    }

    func stopPolling() {
        session.invalidateAndCancel()
    }

    private func upgradeTransport() {

        return (urlPolling, urlWebSocket)
    }

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