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

Method doProtocol

modules/crypt/ssl/session_419.js:235–241  ·  view source on GitHub ↗
(s, protocol, param1, param2)

Source from the content-addressed store, hash-verified

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);
238 if (!packet) return;
239 s.write(packet);
240 s.writable -= packet.byteLength;
241 }
242 readPacket(s) {
243 let packetBuffer = this.packetBuffer;
244 if (!packetBuffer || (packetBuffer.offset < 5)) {

Callers 1

handshakeMethod · 0.95

Calls 2

startTraceMethod · 0.95
writeMethod · 0.65

Tested by

no test coverage detected