Interaction between expressjs, socket.io and EventEmitter listeners
问题 I have a server setup using expressjs which communicates with the front end clients using socket.io. The server runs on the raspberry pi and provides a backend to control mplayer player for my music library using the mplayer nodejs module. Most of the actions to update the clients on the front end are taken based on events emitted by the mplayer EventEmitter module. For example : When a command to stop the player is issued as player.stop() the EventEmitter instance of the player emits 'stop'