MCPcopy
hub / github.com/tinyhttp/tinyhttp / reload

Function reload

packages/session/src/index.ts:490–495  ·  view source on GitHub ↗
(this: Session, callback: (args?: any) => void, ...args: any[])

Source from the content-addressed store, hash-verified

488 const _save = sess.save
489
490 function reload(this: Session, callback: (args?: any) => void, ...args: any[]) {
491 _reload.call(this, function () {
492 wrapmethods(session as Session)
493 callback(args)
494 })
495 }
496
497 function save(this: Session, cb?: (err?: any) => void) {
498 savedHash = hash(this)

Callers

nothing calls this directly

Calls 1

wrapmethodsFunction · 0.85

Tested by

no test coverage detected