fix socket client

fix socket client undefined