MCPcopy Create free account
hub / github.com/andreikop/python-ws-discovery / clearLocalServices

Method clearLocalServices

wsdiscovery/publishing.py:60–66  ·  view source on GitHub ↗

send Bye messages for the services and remove them

(self)

Source from the content-addressed store, hash-verified

58
59
60 def clearLocalServices(self):
61 'send Bye messages for the services and remove them'
62
63 for service in list(self._localServices.values()):
64 self._sendBye(service)
65
66 self._localServices.clear()
67
68 def stop(self):
69 self.clearLocalServices()

Callers 1

stopMethod · 0.95

Calls 1

_sendByeMethod · 0.80

Tested by

no test coverage detected