functioning client
socket client