function createSecAccept(
  nonce,
) {
  const sha1 = new Sha1();
  sha1.update(nonce + kGUID);
  const bytes = sha1.digest();
  return btoa(String.fromCharCode(...bytes));
}
/** Create sec-websocket-accept header value with given nonce */
Create sec-websocket-accept header value with given nonce
Create sec - websocket - accept header value with given nonce
function createSecAccept(
  nonce,
) {
  const sha1 = new Sha1();
  sha1.update(nonce + kGUID);
  const bytes = sha1.digest();
  return btoa(String.fromCharCode(...bytes));
}
function createSecAccept ( nonce , ) { const sha1 = new Sha1 ( ) ; sha1 . update ( nonce + kGUID ) ; const bytes = sha1 . digest ( ) ; return btoa ( String . fromCharCode ( ... bytes ) ) ; }
Create sec-websocket-accept header value with given nonce
Create sec - websocket - accept header value with given nonce