sbstjn / noduino

JavaScript and Node.js Framework for controlling Arduino with HTML and WebSockets
http://sbstjn.github.io/noduino/
1.23k stars 232 forks source link

Attempt to address #35 #36

Open pandafulmanda opened 9 years ago

pandafulmanda commented 9 years ago

making sure socket io loads client side before all other scrips are loaded and try to connect to sockets, making session id in sockets compatible with socket io 1.0

I was having the same problems as in #35, where the io object was not defined before sockets was call in scripts loaded by the require-jquery script so I moved the script loader to the bottom of the index layout file.

Additionally, client side was mad at me about the socket session id when I tried the blinking light demo on the front page. I made an update to Noduino.Socket.js to use socket.io.engine.id as in socket v 1.0 and above.

This library is awesome!