nneves / 3DPrinterInterface

3D Printer Interface
15 stars 3 forks source link

Adjust WebSocket functionality to use ./config/*.json data #13

Closed nneves closed 11 years ago

nneves commented 11 years ago

Current WebSocket functionality (socket.io) was set in code with fixed values ([rest.js] ipaddress and tcpport), hooked to the REST API interface (harcoded values).

nneves commented 11 years ago

Almost completed, initially added a blank file for /public/socket.io/socket.io.js to be used when WS is disabled, but this got cached in the browser and when WS got enabled the dynamic file was not replaced (flatiron from UI [app.js] was already sending the static blank file - need to re-route this request to the REST flatiron instead [rest.js])... removed the static blank file for now, will fix this latter. (so expect it to be missing when WS is disabled)