Added websocket pinging to transaction samples.