Bi-directional communication through event emitters