Refresh the page by adding device

Santiago 9 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 Tananaev 9 years ago

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

Santiago 9 years ago

Could you tell me where to start?

Anton Tananaev 9 years ago

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

Santiago 9 years ago

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

Anton Tananaev 9 years ago

Server doesn't refresh data periodically.

Santiago 9 years ago

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

Anton Tananaev 9 years ago

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