updated data api on websocket to send entire payload