|
|
|
@ -302,7 +302,9 @@ public class DefaultTbEntityDataSubscriptionService implements TbEntityDataSubsc |
|
|
|
Map<Integer, TbAbstractDataSubCtx> sessionSubs = subscriptionsBySessionId.computeIfAbsent(sessionRef.getSessionId(), k -> new HashMap<>()); |
|
|
|
TbEntityDataSubCtx ctx = new TbEntityDataSubCtx(serviceId, wsService, entityService, localSubscriptionService, |
|
|
|
attributesService, stats, sessionRef, cmd.getCmdId(), maxEntitiesPerDataSubscription); |
|
|
|
ctx.setAndResolveQuery(cmd.getQuery()); |
|
|
|
if (cmd.getQuery() != null) { |
|
|
|
ctx.setAndResolveQuery(cmd.getQuery()); |
|
|
|
} |
|
|
|
sessionSubs.put(cmd.getCmdId(), ctx); |
|
|
|
return ctx; |
|
|
|
} |
|
|
|
|