The correct performance of the Demos

Hi
I think i know the answer of this. But I want to be completely sure.
For example the Demo: Blink an on-board LED

For this demo to work it request the Beagle Board Ip.
When I click the run bottom, magic begins!

Well just to know how this magic works. Using the bonescript library is the way the browser starts working.
We are using the beagle board as a web server to run the demos or any other cool code we have.

If I’m not wrong Jason explains this in his video: https://www.youtube.com/watch?v=VP0DOheLxQA

I just want to be sure I understand 100% this process. Could you please confirm or give me more feedback.

Thanks in advance
Diego

Hi
I think i know the answer of this. But I want to be completely sure.
For example the Demo: Blink an on-board LED

For this demo to work it request the Beagle Board Ip.
When I click the run bottom, magic begins!

Well just to know how this magic works. Using the bonescript library is the way the browser starts working.
We are using the beagle board as a web server to run the demos or any other cool code we have.

If I'm not wrong Jason explains this in his video: Maker Faire New York 2013 Electronics Stage : 5 Easy JavaScript Tricks You Can Teach Your BeagleBone - YouTube

I just want to be sure I understand 100% this process. Could you please confirm or give me more feedback.

I answered this once here:
https://groups.google.com/d/msg/beagleboard/nknXpL_f2BU/YSqd8kqXqrEJ

This description really needs to be part of one of the early wizards
telling you how to get connected. It continues to be a mystery to
folks.

It really doesn't matter how you fetch it (from your board or from
http://beagleboard.org/static/bonescript.js), but you start by
including bone101/bonescript.js at 770bbb530c2e775ebc91199f8573a2dff2c45f3c · jadonk/bone101 · GitHub
in your web page such as:

<html>
  <head>
   <script src="http://beagleboard.org/static/bonescript.js"></script>
  </head>
</html>

This defines the function 'setTargetAddress'. This is the function
that will be used to make the connection to the board in two steps.
1) It will load a different 'bonescript.js' from the board itself that
establishes the socket.io connection and defines the 'require'
function to provide the function calls
2) It will cause a function to run defining globals that provide
handlers for the socket.io events.

is that 'bonescript.js' that gets loaded from the board, defines the
functions and starts the socket.io connection.

Once the socket.io connection is made, the 'initiated' function is run
and the BoneScript functions can be used. Each BoneScript function
sends a socket.io message to the board and gets a corresponding
message in return. When the response message is received, the browser
calls the appropriate callback function.

Does that make sense?