<div dir="ltr">In theory, yes. We could add support for the web socket based framework to the python toolkit.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 9 March 2014 13:33, Tony Anderson <span dir="ltr"><<a href="mailto:tony_anderson@usa.net" target="_blank">tony_anderson@usa.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi,<br>
      <br>
      It sounds like the school server should be the node server.<br>
      <br>
      Does this proposed implementation support python sugar activities?<br>
      <br>
      Tony<br>
      <br>
      On 03/09/2014 07:32 AM, <a href="mailto:sugar-devel-request@lists.sugarlabs.org" target="_blank">sugar-devel-request@lists.sugarlabs.org</a>
      wrote:<br>
    </div>
    <blockquote type="cite">
      <pre>Message: 4
Date: Sun, 9 Mar 2014 12:12:56 +0100
From: Daniel Narvaez <a href="mailto:dwnarvaez@gmail.com" target="_blank"><dwnarvaez@gmail.com></a>
To: Prasoon Shukla <a href="mailto:prasoon92.iitr@gmail.com" target="_blank"><prasoon92.iitr@gmail.com></a>
Cc: Sugar-dev Devel <a href="mailto:sugar-devel@lists.sugarlabs.org" target="_blank"><sugar-devel@lists.sugarlabs.org></a>,       Sam Parkinson
        <a href="mailto:sam.parkinson3@gmail.com" target="_blank"><sam.parkinson3@gmail.com></a>, Emil Dudev <a href="mailto:emildudev@gmail.com" target="_blank"><emildudev@gmail.com></a>
Subject: Re: [Sugar-devel] Regarding JS collaboration project
Message-ID:
        <a href="mailto:CANTHhva+dF2iHcGof2L5QmbO3XhFSUUxuUKHGfyhTqovHw4A1Q@mail.gmail.com" target="_blank"><CANTHhva+dF2iHcGof2L5QmbO3XhFSUUxuUKHGfyhTqovHw4A1Q@mail.gmail.com></a>
Content-Type: text/plain; charset="utf-8"

If I remember correctly Emil also agreed that the new framework should be
independent from telepathy at some point and even worked on it.


On 9 March 2014 06:45, Prasoon Shukla <a href="mailto:prasoon92.iitr@gmail.com" target="_blank"><prasoon92.iitr@gmail.com></a> wrote:

</pre>
      <blockquote type="cite" style>
        <pre><span>> </span>Hi Sam. Sorry for the late response but I was occupied with academics.
<span>></span>
<span>> </span>Anyway, I need to bother you again with some questions.
<span>></span>
<span>> </span>So, I went through the thread by Emil Dudev and read the arguments he made
<span>> </span>in favour of not using the mozilla node server and using telepathy instead.
<span>> </span>To that, dnarvaez said that using the node server might be a better idea
<span>> </span>since the current protocol is very unstable.
<span>></span>
<span>> </span>Now, I am somewhat familiar with sugar codebase but certainly not enough
<span>> </span>to actually discuss the merits or demerits of either of these approaches
<span>> </span>(although personally, I like better the idea of all communication happening
<span>> </span>over websocket via a node server). So, the final decision on which approach
<span>> </span>to take will be in the hands of those more experienced. But as I said
<span>> </span>before, I would prefer it if we use the websocket protocol to have this
<span>> </span>kind of architecture:
<span>></span>
<span>> </span><code><span>|</span>Sugar Web Activity<span>|</span></code> <-----> <code><span>|</span>Sugar Shell<span>|</span></code>
<span>> </span>   \
<span>> </span>    \
<span>> </span> websocket
<span>> </span>      \
<span>> </span><code><span>|</span>Node Server<span>|</span></code>
<span>> </span>       /
<span>> </span>      /
<span>> </span>     /
<span>> </span><code><span>|</span>Sugar Web Activity<span>|</span></code> <-----> <code><span>|</span>Sugar Shell<span>|</span></code>
<span>></span>
<span>> </span>instead of the usual telepathy based communication. This I would like
<span>> </span>because:
<span>> </span>1. We'll be able to use the mozilla server with modifications as needed.
<span>> </span>2. We'll be able to use the <b><span>*</span>huge<span>*</span></b> node.js ecosystem for realtime
<span>> </span>communication in any way we want! And, websocket is very versatile -  we
<span>> </span>can send pretty much any binary data over the network.
<span>></span>
<span>> </span>Also, I've worked with node before and found the communication to be quite
<span>> </span>reliable (which it is not with the current XMPP based protocol, if I
<span>> </span>understood dnarvaez correctly). That said, I've only tested out my node
<span>> </span>based work with a handful of people, so...
<span>></span>
<span>> </span>The only downside is the need to have a node server running. For the case
<span>> </span>when there is not internet connectivity, I think we can make a set of
<span>> </span>scripts that can be called to run a node server on the one of the machines,
<span>> </span>say that of the teacher, and all others will connect to it. And of course,
<span>> </span>this process needs to be simple.
<span>></span>
<span>> </span>Anyway, it just seems right to me to augment JS activities with a JS based
<span>> </span>collaboration framework. But of course, I don't really know the details all
<span>> </span>too well to be making the decision here.
<span>></span>
<span>> </span>So, can you please comment on this? Once this decision is made, I can
<span>> </span>start working on my application.
<span>></span>
<span>> </span>Thanks
</pre>
      </blockquote>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Daniel Narvaez<br>
</div>