Slide 10
Slide 10 text
✦ wasm_exec.js Λ֦ு
• console.log ͍ͯͨ͠ՕॴΛDOMʹॻ͖ࠐ·ͤΔ
✦ Goଆ (shimabot.NotifyTrainInformation())
• ࣗͷChatBotͷ౦ٸઢӡߦεΫϦϓτΛbuild
✴ ఆظతʹݟʹߦͬͯిं͕ࢭ·ͬͯͳ͍͔֬ೝ
• JSଆͷnotify()ؔʹొ͢Δ
͏গ͠…
writeSync(fd, buf) {
outputBuf += decoder.decode(buf);
const nl = outputBuf.lastIndexOf("\n");
if (nl != -1) {
const elm = document.querySelector("#wrapper");
let div = document.createElement('div');
div.textContent = outputBuf.substr(0, nl);
elm.appendChild(div);
}