A user of my system will access a page to pull lots of data, at least 500 records, from server Foo
. Once 50 records have been gathered, Express will begin to render the page to display the first 50 records to the user (only the first 50 records need to be displayed initially). Once the system has pulled all 500 records from Foo
I want to send the user a message letting them know that the operation is complete.
My idea is to call the socket emit function once the processing is complete, however I am unsure how to retrieve the socket ID from the request object provided when the user GETs the page. Is it possible or do I need to create a map of request ID's to Socket ID's?
via Josh Luke Blease
No comments:
Post a Comment