prepared single socket client side