Mathieu Leplatre
Mathieu Leplatre
This would have to be done on the server side. The code of OpenID authentication is here https://github.com/Kinto/kinto/blob/master/kinto/plugins/openid/__init__.py but I fear that in order to accomplish what you want, you'll...
Use-case is this: https://github.com/leplatrem/happiness/blob/194d2a21097f0798d200006a9ca166acc5bebc1b/scripts/sagas/poll.js#L13-L24 ``` js try { // Create the bucket in case it doesn't exist. const permissions = {"collection:create": ["system.Authenticated"]}; yield client.createBucket(bucket, {headers, permissions, safe: true}); } catch(e)...
If I do a create with `safe: true`, isn't supposed to issue a `If-None-Match: *` and thus rejecting with `412` if something exists ?
https://twitter.com/pouchdb/status/754016070546051072?s=09
@chartjes instinctively suggested `kinto-sync.js`, so I guess that it will be! - `kinto-sync` for the npm package - `kinto-sync.js` for the Github package
Yes! Feel free to tackle this!
I like `kinto-db`, as well as `kinto-offline` or `kinto-storage` :) But I'm not sure about `adapter` in package names. This is more like a programming pattern notion than anything else....
https://twitter.com/daleharvey/status/735062319126982658 
Good question! You are right, triggering a sync() is very inefficient. That's we did on the 'calendar' demo [here](https://github.com/leplatrem/kinto-demo-calendar/blob/bd7e18d084224b5f4/calendar.js#L208-L210) because it was easy for demonstration purposes. You must store the...
Good idea! In your example `dataFromWebsocket` is what comes from _kinto-pusher_ I guess. What about something more generic like `applyChange(action, data, strategy)` ? (disclaimer: I'm not good at naming things)...