src/message.js
function uint8ArrayToString(arr, offset, limit) {
  offset = offset || 0;
  limit = limit || arr.length - offset;
  let str = '';
  for (let i = offset; i < offset + limit; i++) {
    str += String.fromCharCode(arr[i]);
  }
  return str;
}
function uint8ArrayToString(arr, offset, limit) {
  offset = offset || 0;
  limit = limit || arr.length - offset;
  let str = '';
  for (let i = offset; i < offset + limit; i++) {
    str += String.fromCharCode(arr[i]);
  }
  return str;
}
function uint8ArrayToString ( arr , offset , limit ) { offset = offset || 0 ; limit = limit || arr . length - offset ; let str = '' ; for ( let i = offset ; i < offset + limit ; i ++ ) { str += String . fromCharCode ( arr [ i ] ) ; } return str ; }
Converts a Uint8Array to a String.
@param {Uint8Array} array that should be converted
@param {Number} offset array offset in case only subset of array items should be extracted (default: 0)
@param {Number} limit maximum number of array items that should be extracted (defaults to length of array)
@returns {String}
Converts a Uint8Array to a String .