Skip to content

Commit

Permalink
Fix MeasurementNotificationService binding (#14439)
Browse files Browse the repository at this point in the history
Ensure that the MeasurementNotificationService identifer is bound in
singleton scope.
Otherwise it can only be injected once
  • Loading branch information
tortmayr authored Nov 12, 2024
1 parent 1e4a00d commit cbe6b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/metrics/src/browser/metrics-frontend-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export default new ContainerModule(bind => {
bind(MeasurementNotificationService).toDynamicValue(ctx => {
const connection = ctx.container.get(WebSocketConnectionProvider);
return connection.createProxy<MeasurementNotificationService>(measurementNotificationServicePath);
});
}).inSingletonScope();
});

0 comments on commit cbe6b80

Please sign in to comment.