Refresh the page by adding device

Santiago8 years ago

I need help, adding the API device and assigning it to a user does not appear in the web portal. Only appears and refreshes the page. (The same is true and accept the device from the user menu.) Is there any way to appear immediately without refreshing?

Anton Tananaev8 years ago

It would require some modifications on both back-end and client side.

Santiago8 years ago

Could you tell me where to start?

Anton Tananaev8 years ago

Probably start with studying WebSocket connection code because that's how live updates are pushed by from the server to the client.

Santiago8 years ago

Could not it be simpler to reduce the time the server updates the client data?

Anton Tananaev8 years ago

Server doesn't refresh data periodically.

Santiago8 years ago

Then what is the event that triggers the update?
thanks for your time.

Anton Tananaev8 years ago

Nothing. There are no updates. Data is only updated if you modify something from the app itself.