Textarea scrolling to bottom

I've tried to use a textarea and as the area gets filled I want to show the latest which is at the bottom, So I've tried using the scrollTo js function found in your EventConsole sample code but that does not work in a wasm client code since it appears that the client height is unavailable.
Is there anything that can be used to scrollToBottom for a textarea?

Also, if possible, and I know this is a big ask, could you include sample code for those of use using a webassembly architecture since it appears that the current sample code is server based.