MCPcopy Index your code
hub / github.com/tinode/chat / publish

Function publish

chatbot/python/chatbot.py:213–216  ·  view source on GitHub ↗
(topic, text)

Source from the content-addressed store, hash-verified

211 return pb.ClientMsg(leave=pb.ClientLeave(id=tid, topic=topic))
212
213def publish(topic, text):
214 tid = next_id()
215 return pb.ClientMsg(pub=pb.ClientPub(id=tid, topic=topic, no_echo=True,
216 head={"auto": json.dumps(True).encode('utf-8')}, content=json.dumps(text).encode('utf-8')))
217
218def note_read(topic, seq):
219 return pb.ClientMsg(note=pb.ClientNote(topic=topic, what=pb.READ, seq_id=seq))

Callers 1

client_message_loopFunction · 0.85

Calls 1

next_idFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…