emit socket upgrade event after upgrade done