added getdata api to websockets