Fix socket event emit for reload and update events