Send periodic JSON payload over websocket
Be sure to free payload