adding Client code for Web Socket