angularjs - Node.JS & Socket.IO - Prioritise / Pause & Resume -


i building real time application using angularjs, nodejs & socket.io. application facilitates 3-4 large tables populted mongodb database , after initial load updated.

each table store 15-30mb of data , takes 30 seconds populate them using socket.io . now, if user navigates different page before data downloaded, data required new page stays in queue , received after table first page populates in full. there way pause or cancel request when navigating different page?

thanks in advance help.

--- edit ---

to make question more clear, here process user might follow:

  1. the user opens /index , grid_1 starts loading data server using socket.io. data coming in chunks of 50 records @ time. grid_1 eventualy populated 15.000 records , take 30 download data.

  2. after user waits @ /index 10 secords, decides visit /mysecondpage there grid_2 simillar grid_1 populates database 15.000 records takes 30 seconds download - again using socket.io. since user switched /index /mysecondpage before data populated in grid_1, grid_2 not populated data before grid_1's data downloaded. hope made more clear?


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -