Closed nneves closed 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)
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).
Create a REST node to retrieve the WS config data: http://127.0.0.1:9080/api/getwsconfig/
{"response":{"ipaddress":"192.168.1.109","tcpport":9081,"websockets":true}} .