added event listener on Task entity to emit socket.io event and trigger realtime UI updates