Include subscription id in ds websocket updates

This commit is contained in:
John Colvin committed 2024-11-25 15:26:58 +00:00
1 parent 4532c8644f
commit e13dcaab58
3 files changed
+20 -3

No files matched your search

@@ -97,7 +97,10 @@ class DataStreamSubscription : IDisposable, IHostedService {
IncludeCurrent = true,
UseObjectRows = true,
});
var res = JsonRpcRequest.CreateNotification(method, dp);
var res = JsonRpcRequest.CreateNotification(method, new DataStreamSubscriptionUpdate() {
SubscriptionId = Id,
Table = dp
});
var str = serialize(res, serializerOpts);
if (str is null) {
logger.LogError("Unsubscribing from stream early because we failed to serialize an outgoing DataPacket");