From e51c1386300edc3f85d91021aa5cacc33153882d Mon Sep 17 00:00:00 2001 From: Alex Layton Date: Wed, 7 Sep 2022 10:49:00 -0400 Subject: [PATCH] fix(websockets): remove back optimization check --- oada/services/http-handler/src/websockets.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oada/services/http-handler/src/websockets.ts b/oada/services/http-handler/src/websockets.ts index 28400507..5f6d8fbe 100644 --- a/oada/services/http-handler/src/websockets.ts +++ b/oada/services/http-handler/src/websockets.ts @@ -500,10 +500,13 @@ const plugin: FastifyPluginAsync = async (fastify) => { return; } + /** + * TODO: Fix this check for when parents have listeners if (emitter.listeners(request.resource_id).length === 0) { // No WATCHes return; } + */ try { const change = await changes.getChangeArray(