MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / encodeBase64Object

Function encodeBase64Object

sdk/src/CloudSocketClientLib.js:3369–3373  ·  view source on GitHub ↗
(packet, callback)

Source from the content-addressed store, hash-verified

3367 };
3368
3369 function encodeBase64Object(packet, callback) {
3370 // packet data is an object { base64: true, data: dataAsBase64String }
3371 var message = 'b' + exports.packets[packet.type] + packet.data.data;
3372 return callback(message);
3373 }
3374
3375 /**
3376 * Encode packet helpers for binary types

Callers 1

Calls 1

callbackFunction · 0.70

Tested by

no test coverage detected