MCPcopy Create free account
hub / github.com/tinyhttp/tinyhttp / clear

Method clear

packages/session/src/index.ts:615–618  ·  view source on GitHub ↗

* Clear all sessions * @param cb Callback

(cb?: (err?: any) => void)

Source from the content-addressed store, hash-verified

613 * @param cb Callback
614 */
615 clear(cb?: (err?: any) => void) {
616 this.sessions = {}
617 cb && setImmediate(() => cb(null))
618 }
619
620 /**
621 * Destroy the session associated with the given session ID.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected