Published
Edited
Jan 20, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
notes = Generators.observe(notify => {
notify([]);
const socket = new WebSocket(`ws://${host}`);
socket.onerror = event => {
notify(Promise.reject(new Error("socket error")));
};
const nts = {};
socket.onmessage = event => {
const ej = JSON.parse(event.data);
if (ej.Status == 144) {
nts[ej.Data1] = ej;
} else if (ej.Status == 128) {
delete nts[ej.Data1];
}
notify(nts);
};
})
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more