Skip to content

Commit

Permalink
fix(websockets): remove back optimization check
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Sep 7, 2022
1 parent c92bee9 commit e51c138
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions oada/services/http-handler/src/websockets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e51c138

Please sign in to comment.