Can you share what you have already?
--
You received this message because you are subscribed to the Google Groups "ShareJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sharejs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Your 'shareServer' object is a nodejs http server. How are you creating it?
This is the share.attach function:
https://github.com/share/ShareJS/blob/0.6/src/server/index.coffee#L34-L62
- Notice that server.model = model (the thing you want to call methods
on), and at the end it returns the server object. Whats happening for
you?
Maybe put your server code in a gist somewhere and I'll take
another look?
Another question:
> Can i use share.attach(app, options); with different options?
> I would like to use different tables for different documents
Sure, though I recommend waiting until sharejs 0.7, which supports
collections (=tables) out of the box.
Oh yeah! I don't recognize my own code!
Make a model using share.createModel() and pass the model in to share.attach(app, options, model). Then you can call model.whatever.
-J
Oh yeah! I don't recognize my own code!
Make a model using share.createModel() and pass the model in to share.attach(app, options, model). Then you can call model.whatever.
Sure, though I recommend waiting until sharejs 0.7, which supports
collections (=tables) out of the box.