Make camera_viewer autosubscribe.
Now just loading camera_viewer will display the image.
If multiple camera feed are available on the source, they will all be
sent. Currently not a problem, and unlikely in the near future.
Change-Id: Ia545a6a3c6095d560b9a4d91110f775d5384b91c
diff --git a/y2020/www/camera_main.ts b/y2020/www/camera_main.ts
index 46a0e8a..e13452e 100644
--- a/y2020/www/camera_main.ts
+++ b/y2020/www/camera_main.ts
@@ -5,12 +5,6 @@
const conn = new Connection();
-const configPrinter = new ConfigHandler(conn);
-
conn.connect();
-const iHandler = new ImageHandler();
-
-conn.addHandler(iHandler.getId(), (data) => iHandler.handleImage(data));
-conn.addHandler(
- iHandler.getResultId(), (data) => iHandler.handleImageMetadata(data));
+const iHandler = new ImageHandler(conn);