Realtime Blocky

232 views
Skip to first unread message

David Daza

unread,
Feb 25, 2017, 11:21:54 PM2/25/17
to Blockly
Hi,

I'm thinking about implement a feature to a Blockly app I'm doing. The idea is to have a realtime collaborative workspace, like google docs but with Blocky.

Since the server is running on Nodejs I'm planning to do this using socket.io package by saving the xml of the blocks, broadcast it, and reconstructing the blocks. That's my initial idea.

What do you guys think? Should I use another technology besides web sockets?

Thank you so much in advance

Rachel Fenichel

unread,
Feb 28, 2017, 12:37:18 PM2/28/17
to Blockly
Here's a doc that Neil put together with a plan for realtime collaboration: https://docs.google.com/document/d/1KyF6X7yrc3phPqLGzpPdngLMMzZ0jvXOFK5W43IAwbY/edit

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Daza

unread,
Mar 1, 2017, 8:50:23 PM3/1/17
to blo...@googlegroups.com
Well, I'm actually doing some advances, you can check it here, by now, the app it's only working in one direction, pretty weird, but I'm going to try to send the xml in another format, following the advises within the Neil's document you attached. Thank you so much, you're welcome to collaborate and of course I'll post any advance I make

To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/kgeTSvMI-LI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
David E. Daza Lacera
Docente en formación
Licenciatura en Electrónica
Universidad Pedagógica Nacional

David Daza

unread,
Mar 17, 2017, 10:56:00 PM3/17/17
to Blockly
Well, we got a nice first approach :D. You can take a look here

Carlos Galarza

unread,
Mar 21, 2017, 11:01:08 AM3/21/17
to Blockly
It is a good approach, it can be improved using the Blockly event system sending fine grained events over the socket for improving performance.

Evan Patton

unread,
Mar 22, 2017, 3:53:30 PM3/22/17
to Blockly
The Blockly event system definitely helps. At MIT App Inventor we've been working on real-time collaboration, and sending the JSON-serialized blocks via socket.io is pretty straightforward. The challenge is more correctly implementing the operational transforms so that once you have more than a couple users that the blocks don't randomly disappear out from under you. Good luck!

Evan

David Daza

unread,
Mar 23, 2017, 11:59:48 AM3/23/17
to blo...@googlegroups.com
Thank you so much Evan, we're going to really take into account your feedback! :D

--
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/kgeTSvMI-LI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthew Bishop

unread,
Aug 8, 2019, 2:31:48 PM8/8/19
to Blockly
Rachel, I'm interested in the state of realtime Blockly across multiple clients. Has this seen any work in the last couple of years?
Reply all
Reply to author
Forward
0 new messages