News for hackers. Stuff that matters.
Re:Show HN: Simperium, a realtime data layer by ecksor on Wednesday May 09, 2012 @08:04PM (#3951149)
Yes definitely, you can update directly using the bucket.update() method, and pass in an id and the data object. The better way would be to implement the 'local' callback to return the data, then just call bucket.update(id), and the library will call your 'local' method to retrieve the current state for that id. You can read about the 'local' callback here: https://simperium.com/docs/reference/js/#local

For auth, we'll be adding cross-origin support for https://auth.simperium.com, up till now we've been focused on supporting apps with existing backends which generally use the HTTP API to generate auth tokens from their server.

Re:Show HN: Simperium, a realtime data layer by gmaster1440 on Wednesday May 09, 2012 @08:09PM (#3951171)
perfect, thanks!
Re:Show HN: Simperium, a realtime data layer by ecksor on Wednesday May 09, 2012 @10:16PM (#3951544)
We just added support for CORS on both /authorize/ and /create/, let us know if you have any issues
Re:Show HN: Simperium, a realtime data layer by gmaster1440 on Wednesday May 09, 2012 @10:22PM (#3951557)
sweet, will do