MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / updateWebsocket

Method updateWebsocket

src/Site/Site.py:1038–1044  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

1036
1037 # Send site status update to websocket clients
1038 def updateWebsocket(self, **kwargs):
1039 if kwargs:
1040 param = {"event": list(kwargs.items())[0]}
1041 else:
1042 param = None
1043 for ws in self.websockets:
1044 ws.event("siteChanged", self, param)
1045
1046 def messageWebsocket(self, message, type="info", progress=None):
1047 for ws in self.websockets:

Callers 15

updateMethod · 0.95
deleteMethod · 0.95
fileStartedMethod · 0.95
fileDoneMethod · 0.95
fileFailedMethod · 0.95
removeSolvedFileTasksMethod · 0.45
portCheckMethod · 0.45
setStatusMethod · 0.45
actionSiteMediaMethod · 0.45
openArchiveMethod · 0.45
processPeerResFunction · 0.45

Calls 2

itemsMethod · 0.80
eventMethod · 0.80

Tested by

no test coverage detected