nodejs auto refresh view after database updates
问题 I would like use nodeJS to refresh my view, every time a function has made changes to the database. If we take MEAN-stack as an example, I don't want to send an $http-request every x seconds to check if changes have been made to the database. I would like the front end to get notified automatically and then update the view. What are best practices for this? I would use some kind of Oberserver pattern in the server side, but do not know how I could notify the front end with that. 回答1: To get