Added example socket code to uploadScript