B:BD[
2.4495] → [
2.4495:4531]
B:BD[
2.4557] → [
2.4557:4597]
socket.onmessage = (event) => {
const m = JSON.parse(event.data);
if (typeof m == 'object') {
if (m?.Chunk && m?.Chunk.content.length) {
console.log(m);
out[m.Chunk.channel].push(ansi_up.ansi_to_html(m.Chunk.content));
if (m.Chunk.channel == 0 && out[1].reduce((a, b) => a + b.length, 0)) {
document.getElementById('stdout-bottom')?.scrollIntoView();
} else {
document.getElementById('stderr-bottom')?.scrollIntoView();
socket.onmessage = (event) => {
const m = JSON.parse(event.data);
if (typeof m == 'object') {
if (m?.Chunk && m?.Chunk.content.length) {
console.log(m);
out[m.Chunk.channel].push(ansi_up.ansi_to_html(m.Chunk.content));
if (m.Chunk.channel == 0 && out[1].reduce((a, b) => a + b.length, 0)) {
document.getElementById('stdout-bottom')?.scrollIntoView();
} else {
document.getElementById('stderr-bottom')?.scrollIntoView();
}
} else if (m?.Status) {
console.log(m);
ended = m.Status.ended;
status = m.Status.status;
}