Provide lossless version of live plotter
Reuse the existing buffers that exist for offline log replay to maintain
only the buffers we need during realtime replay.
Change-Id: Ic2b43bb2c761ebf564d77ee3ce00cd84804a7a1a
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/aos/network/www/proxy.ts b/aos/network/www/proxy.ts
index 5461899..5415400 100644
--- a/aos/network/www/proxy.ts
+++ b/aos/network/www/proxy.ts
@@ -117,7 +117,7 @@
name: string, type: string,
handler: (data: Uint8Array, sentTime: number) => void): void {
this.addHandlerImpl(
- name, type, TransferMethod.EVERYTHING_WITH_HISTORY, handler);
+ name, type, TransferMethod.LOSSLESS, handler);
}
/**
@@ -137,7 +137,7 @@
if (!this.handlerFuncs.has(channel.key())) {
this.handlerFuncs.set(channel.key(), []);
} else {
- if (method == TransferMethod.EVERYTHING_WITH_HISTORY) {
+ if (method == TransferMethod.LOSSLESS) {
console.warn(
'Behavior of multiple reliable handlers is currently poorly ' +
'defined and may not actually deliver all of the messages.');