-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Edward Knowles edited this page Sep 13, 2015
·
3 revisions
Dashboards have widgets which can be either polling or push type.
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.
Fetch some data we need and send it to a socket.
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.
- WebSockets
- Add data field to widgets and use this for their visual customisation.
- Node workers