Socket.io emit from Express controllers
问题 I'm quite new to Node.js / Express, and I'm using it as a backend for an AngularJS app. I've looked all over StackOverflow for some help on my problem, but I can't seem to figure out how to port the suggestions to my code. My application works as follows: A long running Scala process periodically sends my Node.js application log messages. It does this by posting to an HTTP API When the post is received, my application writes the log message to MongoDB The log messages are then sent in real