MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / close

Method close

modules/crypt/ssl/session_419.js:230–234  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

228 return Math.max(0, s.writable - 32);
229 }
230 close(s) {
231 this.startTrace("packetize");
232 const packet = SSLAlert.packetize(this, 0, SSLAlert.close_notify);
233 s.writable = s.write(packet);
234 }
235 doProtocol(s, protocol, param1, param2) {
236 this.startTrace("packetize");
237 const packet = protocol.packetize(this, param1, param2);

Callers

nothing calls this directly

Calls 2

startTraceMethod · 0.95
writeMethod · 0.65

Tested by

no test coverage detected