You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, events get emitted through WebSockets when someone adds or removes a stock. But if someone views the page after a 'stockadd' event had been emitted, that viewer will not see that added stock. Thus, whenever a stock is added or removed, that record should be updated in a MongoDB document so new clients can mirror it when they open the page.
The text was updated successfully, but these errors were encountered:
Mongoose package installed and schema built for the document that will
hold all the stocks that have currently been added. This will be used
to synchronize new clients that view the page after stocks have been
added.
Currently, events get emitted through WebSockets when someone adds or removes a stock. But if someone views the page after a 'stockadd' event had been emitted, that viewer will not see that added stock. Thus, whenever a stock is added or removed, that record should be updated in a MongoDB document so new clients can mirror it when they open the page.
The text was updated successfully, but these errors were encountered: