[Csnd] wasm: getting csound csound messages

Is there a way in Csound WASM to intercept messages (that go by default to the JS console) and print them in the page?

Should be able to use:

await cs.on("message", csoundMsgCallback);

after you create your CsoundObj object. An example callback:

const csoundMsgCallback = msg => {
  consoleOutput.innerHTML += msg + "\n";
};

There's a little bit of documentation around possible events and "message" here:

thanks.