the ws onmThe `onMessage` routine needs to be updated any time a dependent variable within changesfor the websocket does not have access to the latest state variables. We used to have a special hook that handled thiIt has access to state variables when update was called all the time at a fixed time.the onMessage routine was set.
So, Now,we need to update the onMessage routine whenever state variables important to this routine change. need to update the ws handler as these change.Since we are updating cashtabState whenever we send or receive a tx -- we should update the onMessage routine to include the current cashtabState whenever cashtabState changes.
This patches an issue described in feedback on D15701