MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / encodeBase64Object

Function encodeBase64Object

public/javascripts/socket.io.js:5659–5663  ·  view source on GitHub ↗
(packet, callback)

Source from the content-addressed store, hash-verified

5657 };
5658
5659 function encodeBase64Object(packet, callback) {
5660 // packet data is an object { base64: true, data: dataAsBase64String }
5661 var message = 'b' + exports.packets[packet.type] + packet.data.data;
5662 return callback(message);
5663 }
5664
5665 /**
5666 * Encode packet helpers for binary types

Callers 1

socket.io.jsFile · 0.85

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected