MCPcopy Create free account
hub / github.com/deepclause/agentvm / parseTcpError

Method parseTcpError

src/ringbuffer.js:397–402  ·  view source on GitHub ↗

* Parse TCP error message * @param {Buffer} payload * @returns {Object} - { key, error }

(payload)

Source from the content-addressed store, hash-verified

395 * @returns {Object} - { key, error }
396 */
397 parseTcpError(payload) {
398 const keyLen = payload[0];
399 const key = payload.slice(1, 1 + keyLen).toString('utf8');
400 const error = payload.slice(1 + keyLen).toString('utf8');
401 return { key, error };
402 }
403
404 /**
405 * Parse UDP recv message

Callers 1

pollNetResponsesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected