Live data from Hacker News

Mozilla Labs: TogetherJS

togetherjs.com

51–60 of 66 posts

Re: Mozilla Labs: TogetherJS

#51
post #24
post #20

Earlier quoted context omitted.

On principle we keep the server simple, echoing messages back and forth between clients. In practice it's quite hard for two browsers to connect directly to each other, and while we want to support that kind of architecture in order to get it working we still need to simulate P2P using a server.

> In practice it's quite hard for two browsers to connect directly to each other Isn't this the problem WebRTC abstracts away? Your server should just be a TURN server ( http://en.wikipedia.org/wiki/Traversal_Using_Relays_around_N... ), shouldn't it?

WebRTC makes it possible, but not easy, nor abstracted. You still have very long connection strings to establish the connection, and those strings change as you move around, so it's not something we'd want to ask users to send to each other in order to establish a connection. The approach usually used is a server where the two people rendezvous to exchange the connection strings. That server is kind of like what we have – but then once it's in place, changing over to WebRTC just doesn't seem as exciting. (And even then the connections are slower to establish and less reliable than WebSockets.)

Re: Mozilla Labs: TogetherJS

#52
post #27
post #13

Earlier quoted context omitted.

IE10 has WebSockets: http://caniuse.com/websockets – but TogetherJS doesn't support IE10 either (simply haven't been able to keep up testing with IE in addition to other browsers).

i know about websockets..actually i was asking about Web RTC which was used for Video and Audio chat here :)

Oh yeah... we use WebRTC when it's available, but don't require it.

Re: Mozilla Labs: TogetherJS

#53
This is fantastic. I put two lines of code in my site designed to teach javascript programming http://reeborg.ca/learn_js_together.html and it appears to just work (based on a quick test which is all I could do for now). Well, except for a bug: when the robot finishes a program, a pop-up window normally appears to indicate if the task was done properly ... and it does not appear when TogetherJS is activated. To compare the version without, just remove "_together" from the URL.

Re: Mozilla Labs: TogetherJS

#54
post #32

Earlier quoted context omitted.

I agree that it's cool and ambitious, but it seems to have a large intersection with Google Wave.

It integrates with your existing UI, and not as a separate box like Wave or other plugins. I also like that this is free, open source and _from Mozilla_.

All true, but note that the Wave server is free and open source: http://incubator.apache.org/wave/about.html

Re: Mozilla Labs: TogetherJS

#55
post #25

I want to implement a real time Collaboration editor like google docs because I want to keep data on my own servers.. Can anyone suggest me architectural points to build that...what should be stack on server side, how to send edit diffs etc..

http://simperium.com/ is exactly what you need. It serves as a real-time data layer; you can push/pull from it from the browser, and pull/push to it from your server too.

Re: Mozilla Labs: TogetherJS

#56

This is fantastic. I put two lines of code in my site designed to teach javascript programming http://reeborg.ca/learn_js_together.html and it appears to just work (based on a quick test which is all I could do for now). Well, except for a bug: when the robot finishes a program, a pop-up window normally appears to indicate if the task was done properly ... and it does not appear when TogetherJS is activated. To compa…

Actually, after testing some more, it does not work. jqueryUI dialogs are prevented to open (for one thing). And, since I change the url hash, it likely messes with the changes introduced by togetherJS ... which, currently, prevents it from working collaboratively. Still, neat idea - especially if I can get it to work.

Re: Mozilla Labs: TogetherJS

#57
post #19

Earlier quoted context omitted.

[Author here] The big way TogetherJS differs from many of the other realtime products out there, like Firebase or (to a lesser degree) ShareJS, is that it doesn't do any storage. It coordinates real-time sessions, but it's not there to take the place of the application, instead it augments the application. If your application has persistence, it has traditional persistence. Whatever auth system you have is your own.…

Is this a free pusher? What's the catch?

[mozilla employee here] There's no catch except an absence of a commitment to keep running it. Mozilla Labs is charged with figuring out how to make the web better. We think this could help make more apps collaborative. You tell us if we're right.

Re: Mozilla Labs: TogetherJS

#58

This is fantastic. I put two lines of code in my site designed to teach javascript programming http://reeborg.ca/learn_js_together.html and it appears to just work (based on a quick test which is all I could do for now). Well, except for a bug: when the robot finishes a program, a pop-up window normally appears to indicate if the task was done properly ... and it does not appear when TogetherJS is activated. To compa…

Actually, after testing some more, it does not work. jqueryUI dialogs are prevented to open (for one thing). And, since I change the url hash, it likely messes with the changes introduced by togetherJS ... which, currently, prevents it from working collaboratively. Still, neat idea - especially if I can get it to work.

Please file github issues, this is the feedback the project needs.

Re: Mozilla Labs: TogetherJS

#59
post #31

This looks fantastic. I just have a question for the author (+ Mozilla). Since this is a hosted service, I'm a bit reluctant to integrate it, because I'm not sure what we should expect from Mozilla on this project. Is this a cool open source project that will get support for a little and then fade away? Is this something that a team is really behind and is going to continue to support and extend? Is it expected that…

The server is fairly trivial. It's mostly there to make it easy to try. If you want to host the server, go ahead (source is on github).
Post reply on HN