Skip to content
Edward Knowles edited this page Sep 13, 2015 · 3 revisions

Plan

Dashboards have widgets which can be either polling or push type.

Polling

This is when the server needs to make a get request to an external service at intervals.

The server needs to make the GET requests to external services, not the client Why? CORS and exposing URL/apikeys to client is not good.

External requests can take a long time, therefore it should have a worker do them for us.

Polling Worker

Fetch some data we need and send it to a socket.

Push

This is relatively easy, we ask the user to create a service to POST to our server. We then validate the urlKey matches the POST data and then send it to the client via WebSocket.

Things To Do.

  • WebSockets
  • Add data field to widgets and use this for their visual customisation.
  • Node workers
Clone this wiki locally