MCPcopy Index your code
hub / github.com/nodejs/node / onnewsessionclient

Function onnewsessionclient

lib/internal/tls/wrap.js:428–437  ·  view source on GitHub ↗
(sessionId, session)

Source from the content-addressed store, hash-verified

426}
427
428function onnewsessionclient(sessionId, session) {
429 debug('client emit session');
430 const owner = this[owner_symbol];
431 const wrappedSession = wrapSessionState(session, owner[kConnectOptions]);
432 if (owner[kIsVerified]) {
433 owner.emit('session', wrappedSession);
434 } else {
435 owner[kPendingSession] = wrappedSession;
436 }
437}
438
439function onnewsession(sessionId, session) {
440 debug('onnewsession');

Callers

nothing calls this directly

Calls 3

wrapSessionStateFunction · 0.85
debugFunction · 0.50
emitMethod · 0.45

Tested by

no test coverage detected