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

Method actionChannelJoin

src/Ui/UiWebsocket.py:356–364  ·  view source on GitHub ↗
(self, to, channels)

Source from the content-addressed store, hash-verified

354
355 # Join to an event channel
356 def actionChannelJoin(self, to, channels):
357 if type(channels) != list:
358 channels = [channels]
359
360 for channel in channels:
361 if channel not in self.channels:
362 self.channels.append(channel)
363
364 self.response(to, "ok")
365
366 # Server variables
367 def actionServerInfo(self, to):

Callers

nothing calls this directly

Calls 1

responseMethod · 0.95

Tested by

no test coverage detected