martypenner / woodtrader

1 stars 0 forks source link

Which save/load technology do we want to use? #6

Closed martypenner closed 12 years ago

martypenner commented 12 years ago

IndexedDB / localStorage / WebSQL / AJAX / WebSockets?

martypenner commented 12 years ago

So:

Looks like the only real option left (at least right now) is either traditional AJAX or WebSockets. I'm leaning toward using sockets, as there are polyfills for unsupported browsers (though that's less of a concern, since we're requiring a solid canvas implementation to simply play the game). Plus, we could use Socket.IO within Node.js to get really fast saving / loading.

See https://hacks.mozilla.org/2012/03/there-is-no-simple-solution-for-local-storage/ for more details.

martypenner commented 12 years ago

So for the record, WebSockets it is.