Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
_Tem_ab2str = function(buf) { 
    var str = String.fromCharCode.apply(null, new Uint8Array(buf.buffer)); 
    return new Uint8Array(buf.buffer); 
};  

 

When the receiving remote data channel receives the string, it will change it back into a UInt8Array using the following function:

...