You specify the .html file location in the server code.
In the isolasoftware.it websockets example:

function handler (req, res) {
  fs.readFile('sock123/index.html',

When the socketio server receives a request on the specified port (in the 
example 8090), it reads the file 'sock123/index.html'
192.128.7.2:3000 is the cloud9 'server'
192.168.7.2:8090 would be the sock123 page with buttons to control the 
LEDs. (assuming you put index.html in the correct location...)
I'm assuming you have thermostat.html in the / directory, I think that's 
why it is working, but I'm not sure since you haven't given us any code to 
confirm.  
When I ran the example, I used '/var/lib/cloud9/sock123/index.html' as the 
location so I didn't have to change directories all the time & Could keep 
the sock123.js & index.html in the same folder under cloud9.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to