diff --git a/lib/handshake.js b/lib/handshake.js index f6abb61..c6630a6 100644 --- a/lib/handshake.js +++ b/lib/handshake.js @@ -9,9 +9,9 @@ const generateWebsocketAcceptValue = (websocketKey) => { } const concatenated = websocketKey + handshakeGUID; - const sha1HashedInBase64 = crypto.createHash('sha1').update(concatenated, 'binary').digest('base64'); + const sha1HashInBase64 = crypto.createHash('sha1').update(concatenated, 'binary').digest('base64'); - return sha1HashedInBase64; + return sha1HashInBase64; }; module.exports = { generateWebsocketAcceptValue }; \ No newline at end of file