http - Realtime Data AngularJS -
I'm working in a freelance project that controls the industrial process. I am making an app with the following framework: AngularJS: Framework Frontend. CodeIgniter: Framework Backend Database: mySQL Unfortunately, because of the working conditions, I have some server restrictions because the backend of this app will be placed on shared hosting. One of the requirements is able to upload data to the grid using this app. Using tablets with internet access, access to data from synchronous between one or more users is essential. Users will basically see a grid of data. The problem is that when a user has uploaded information, then it should be viewed immediately in another tablet, which can also upload data.
I am adding a timeout function which is updating the grid via a request. Every "x" second in seconds:
$ timeout (function ( ) {// http requests reload grid data, 3000); For me, this solution is unstable under poor Internet service, and does not look as an optimal solution.
Can someone give me some advice (preferably "angular-that") to solve this problem of synchronization without making this constant HTTP request, keeping in mind the technical restrictions of the server?
Comments
Post a Comment