Switched to using socket.io for triggering events