josephg / ShareJS

Collaborative editing in any app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to retrieve and apply operations manually?

beckyconning opened this issue · comments

Hi! We use a custom approach to information storage which we think might be incompatible with ShareJS's client and server approach.

In the hex game example we can see the transformations appearing on the screen as they are generated. What we'd like is to be provided with the operations from ShareJS when they are generated using ShareJS's JSON DSL or text editor interfaces, deal with storing operations and creating "revisions" ourselves and also be able to pump transformations back into ShareJS at will.

The documentation focuses on using the standard client and server setup included in ShareJS. I think the strength of ShareJS is really in the transformation data format and the generation and application of those transformations rather than this client and server pattern.

Can you recommend a good way of doing what I (poorly) explained above? In my head I'm imagining a stream of transformations but for some reason we haven't been able to get our heads around it using the examples, docs and source.

Thanks.