[minor] Emit events on the client side using .emit