josephg / ShareJS

Collaborative editing in any app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Componentize ShareJS?

markreg opened this issue · comments

Are there any plans to componentize ShareJS?

https://github.com/component/component

Also, if I'm already using socket.io for other parts of my app is there a way to use socket.io or do I have to use browserchannel?

SockJS is fully supported. Last I heard, it doesnt have the same scaling
issues (memory leaks) that socket.io does.

On Wed, Mar 13, 2013 at 4:00 PM, markreg notifications@github.com wrote:

Are there any plans to componentize ShareJS?

https://github.com/component/component

Also, if I'm already using socket.io for other parts of my app is there a
way to use socket.io or do I have to use browserchannel?


Reply to this email directly or view it on GitHubhttps://github.com//issues/177
.

What exactly is the difference between SockJS, BrowserChannel, and Socket.IO?

browserchannel just uses http. socket.io and sockjs both expose a websocket
api that then uses different transports depending on client support. My
understanding is the fundamental difference between js and io is that js
starts at the lowest common denominator and upgrades the connection until
it gets to websockets while io starts at websockets and degrades until it
gets a connection that works. The general feeling from blogs I read is that
io is kinda fun/hackers/hobbiests while js attempts to be a rock-solid
library for production.

Since both implement the websocket api, they should be drop-in replacements.

On Wed, Mar 13, 2013 at 4:28 PM, markreg notifications@github.com wrote:

What exactly is the difference between SockJS, BrowserChannel, and
Socket.IO?


Reply to this email directly or view it on GitHubhttps://github.com//issues/177#issuecomment-14866437
.

How would I go about doing the drop-in replacement to remove bcsocket.js and use socket.io only?

Also, this isn't entirely related but is there a way for me to store ShareJS documents to MongoDB for long term persistence and use redis for the time while the document is being edited? That way I get the speed advantage of using redis and can use mongodb for storage.

there're plenty of examples on the website, I believe. I'm nearly finished
with a tutorial. I'll try to get it finished up over the weekend and posted
on the wiki.

This conversation is more suited to the mailing list
https://groups.google.com/forum/#!forum/sharejs, as this isn't a
bug/feature request. Start a thread on the mailing list, and I'll respond
to it when the tutorial is up.

On Thu, Mar 14, 2013 at 1:03 PM, markreg notifications@github.com wrote:

How would I go about doing the drop-in replacement to remove bcsocket.js
and use socket.io only?

Also, this isn't entirely related but is there a way for me to store
ShareJS documents to MongoDB for long term persistence and use redis for
the time while the document is being edited? That way I get the speed
advantage of using redis and can use mongodb for storage.


Reply to this email directly or view it on GitHubhttps://github.com//issues/177#issuecomment-14914987
.

Not helpful yet, but the next version will allow you to manage your own connection to the server.