Skip to content

Commit

Permalink
Node holds separate list for wsubscribers
Browse files Browse the repository at this point in the history
  • Loading branch information
klpanagi committed Jan 10, 2025
1 parent 3c1c9fc commit 0d84311
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commlib/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def __init__(self,

self._publishers = []
self._subscribers = []
self._wsubscribers = []
self._rpc_services = []
self._rpc_clients = []
self._action_services = []
Expand Down Expand Up @@ -194,7 +195,7 @@ def ports(self):
@property
def endpoints(self):
return self._subscribers + self._publishers + self._rpc_services + self._rpc_clients + \
self._action_services + self._action_clients
self._action_services + self._action_clients + self._wsubscribers

@property
def health(self):
Expand Down Expand Up @@ -466,7 +467,7 @@ def create_wsubscriber(self, *args, **kwargs):
*args,
**kwargs,
)
self._subscribers.append(sub)
self._wsubscribers.append(sub)
return sub

def create_rpc(self, *args, **kwargs):
Expand Down

0 comments on commit 0d84311

Please sign in to comment.