File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
ui/src/components/diagram-maker Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -319,6 +319,15 @@ export const DiagramMakerContainer = ({
319
319
}
320
320
}
321
321
} ;
322
+ const removeWsClient = ( srcNode : CompageNode , destNode : CompageNode ) => {
323
+ if ( destNode . consumerData . wsConfig && destNode . consumerData . wsConfig . clients ) {
324
+ for ( let i = 0 ; i < destNode . consumerData . wsConfig . clients . length ; i ++ ) {
325
+ if ( destNode . consumerData . wsConfig . clients [ i ] . sourceNodeId === srcNode . id ) {
326
+ destNode . consumerData . wsConfig . clients . splice ( i -- , 1 ) ;
327
+ }
328
+ }
329
+ }
330
+ } ;
322
331
323
332
// onAction(action);
324
333
if ( actionInterceptor ) {
@@ -363,6 +372,7 @@ export const DiagramMakerContainer = ({
363
372
if ( destNodeState ) {
364
373
removeGrpcClient ( srcNodeConfig , destNodeState ) ;
365
374
removeRestClient ( srcNodeConfig , destNodeState ) ;
375
+ // removeWsClient(srcNodeConfig, destNodeState)
366
376
}
367
377
}
368
378
}
You can’t perform that action at this time.
0 commit comments