MCPcopy
hub / github.com/tinode/chat / leave

Function leave

chatbot/python/chatbot.py:205–211  ·  view source on GitHub ↗
(topic)

Source from the content-addressed store, hash-verified

203 return pb.ClientMsg(sub=pb.ClientSub(id=tid, topic=topic))
204
205def leave(topic):
206 tid = next_id()
207 add_future(tid, {
208 'arg': topic,
209 'onsuccess': lambda topicName, unused: del_subscription(topicName)
210 })
211 return pb.ClientMsg(leave=pb.ClientLeave(id=tid, topic=topic))
212
213def publish(topic, text):
214 tid = next_id()

Callers 1

client_message_loopFunction · 0.85

Calls 3

next_idFunction · 0.85
add_futureFunction · 0.85
del_subscriptionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…