nneves / 3DPrinterInterface

3D Printer Interface
15 stars 3 forks source link

Need to cache printer data to send it when 1st client/browser connects #11

Closed nneves closed 11 years ago

nneves commented 11 years ago

New communication channel is now set using sokcet.io, printer mapped messages are sent to client/browser after the 1st client gets connected but previous code wouldn't cache the initialization messages or other data.

Please check issue #2 for more details.

nneves commented 11 years ago

rest.js is now implementing a minimal functionality to cache json data into the "arrayCachePrinterMsg" object array and once socket.io gets is first client it will emit that that to the local jsonStream that will then trigger the socket.io emit pattern already implemented in #2