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

Function login

chatbot/python/chatbot.py:187–194  ·  view source on GitHub ↗
(cookie_file_name, scheme, secret)

Source from the content-addressed store, hash-verified

185 ver=LIB_VERSION, lang="EN"))
186
187def login(cookie_file_name, scheme, secret):
188 tid = next_id()
189 add_future(tid, {
190 'arg': cookie_file_name,
191 'onsuccess': lambda fname, params: on_login(fname, params),
192 'onerror': lambda unused, errcode: login_error(unused, errcode),
193 })
194 return pb.ClientMsg(login=pb.ClientLogin(id=tid, scheme=scheme, secret=secret))
195
196def subscribe(topic):
197 tid = next_id()

Callers 1

init_clientFunction · 0.85

Calls 4

next_idFunction · 0.85
add_futureFunction · 0.85
on_loginFunction · 0.85
login_errorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…