GithubHelp home page GithubHelp logo

Comments (6)

peterbe avatar peterbe commented on June 27, 2024

If I'm not mistaken socket.io solves that by you settings an array as part of the options of the list of protocols to try (e.g. Websocket, Flash, long polling, etc) and it tries one at a time till they have all failed.

from localforage.

jokeyrhyme avatar jokeyrhyme commented on June 27, 2024

I have a use case where I only want to use storage mechanisms with decent quotas. This is pretty much limited to IndexedDB and only WebSQL + Cordova. Browser-based WebSQL does not meet my needs.

As such, it would be terrific to be able to perform the necessary detection and force localForage to be limited to the desired set of drivers.

from localforage.

tofumatt avatar tofumatt commented on June 27, 2024

Yeah, in general I’ve considered the case that users want to opt-out of localStorage. I think I’ll start on said branch tonight ^_^

  • tofumatt

On February 4, 2014 at 18:27:39, Ron Waldon ([email protected]) wrote:

I have a use case where I only want to use storage mechanisms with decent quotas. This is pretty much limited to IndexedDB and only WebSQL + Cordova. Browser-based WebSQL does not meet my needs.

As such, it would be terrific to be able to perform the necessary detection and force localForage to be limited to the desired set of drivers.


Reply to this email directly or view it on GitHub.

from localforage.

fwenzel avatar fwenzel commented on June 27, 2024

Cordova is an interesting use case because I seem to recall they wrap WebSQL for their storage API. Which means it'll never™ exist for Cordova + Firefox OS unless they change that API. Is "Cordova-based WebSQL" another storage adapter then?

from localforage.

jokeyrhyme avatar jokeyrhyme commented on June 27, 2024

@fwenzel I already treat WebSQL in Cordova apps exactly the same as WebSQL in the browser, in terms of my API use. The only practical difference is that browsers have weird quirky quotas and related user prompts, whilst Cordova-enhanced WebSQL gives me more space than I would ever ask for.

So for my purposes, I wouldn't find any value in treating WebSQL differently within localForage based on the presence of Cordova.

from localforage.

fwenzel avatar fwenzel commented on June 27, 2024

Oh, I think I misunderstood you at first.

from localforage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.