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

Function packetize

modules/crypt/ssl/ssl_alert.js:86–93  ·  view source on GitHub ↗
(session, level, description)

Source from the content-addressed store, hash-verified

84 trace("SSL: close notify\n");
85 },
86 packetize(session, level, description) {
87 session.traceProtocol(this);
88
89 const s = new SSLStream();
90 s.writeChar(level);
91 s.writeChar(description);
92 return recordProtocol.packetize(session, recordProtocol.alert, s.getChunk());
93 },
94};
95
96Object.freeze(alert);

Callers

nothing calls this directly

Calls 3

writeCharMethod · 0.95
getChunkMethod · 0.95
traceProtocolMethod · 0.45

Tested by

no test coverage detected