MCPcopy
hub / github.com/socketio/socket.io / decodeBase64Packet

Function decodeBase64Packet

packages/socket.io/client-dist/socket.io.js:321–331  ·  view source on GitHub ↗
(data, binaryType)

Source from the content-addressed store, hash-verified

319 };
320 };
321 var decodeBase64Packet = function decodeBase64Packet(data, binaryType) {
322 if (withNativeArrayBuffer$1) {
323 var decoded = decode$1(data);
324 return mapBinary(decoded, binaryType);
325 } else {
326 return {
327 base64: true,
328 data: data
329 }; // fallback for old browsers
330 }
331 };
332 var mapBinary = function mapBinary(data, binaryType) {
333 switch (binaryType) {
334 case "blob":

Callers 1

decodePacketFunction · 0.70

Calls 2

decode$1Function · 0.85
mapBinaryFunction · 0.70

Tested by

no test coverage detected