socket transport methods refactored a little bit, fixed error in socket client lib