Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I made something similar recently for teaching (node.js server, java client in publish/subscribe).</p> <p>Actually, you should consider Faye : <a href="http://faye.jcoglan.com/" rel="nofollow">http://faye.jcoglan.com/</a> You can attach a websocket and/or bayeux server in a node.js instance using faye.</p> <p>You can then connect any client that implement one or both of these protocol.</p> <p>I successfully used it in the past for a lab with students in which a server is node.js publishing information, and a java client subscribe to faye using the cometd library (<a href="http://cometd.org/" rel="nofollow">http://cometd.org/</a>).</p> <p>Source code of :</p> <ul> <li>this server with faye but also traditional http server is located at : <a href="https://github.com/cgravier/WI-UCLab/blob/master/context-server-nodejs/simulateArduino.js" rel="nofollow">https://github.com/cgravier/WI-UCLab/blob/master/context-server-nodejs/simulateArduino.js</a></li> <li>the java client using Cometd : <a href="https://github.com/cgravier/WI-UCLab/tree/master/context-client-java" rel="nofollow">https://github.com/cgravier/WI-UCLab/tree/master/context-client-java</a> (sorry it is a library hell, it is designed for student that I was explicitly told were not familiar with maven (or equivalent), and it is 3h lab... anyway.)</li> </ul> <p>Although the document is in French, I guess the figure at page 4 in <a href="https://github.com/cgravier/WI-UCLab/blob/master/lab%20document/context-awareness.pdf" rel="nofollow">https://github.com/cgravier/WI-UCLab/blob/master/lab%20document/context-awareness.pdf</a> is self explanable.</p> <p>HTH</p> <p>fafhrd</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload