added web socket client funcitonality