fixing issue in websockets
adding websocket sample code