MCPcopy Index your code
hub / github.com/nodejs/node / generateAcceptValue

Method generateAcceptValue

test/common/websocket-server.js:71–76  ·  view source on GitHub ↗
(secWebSocketKey)

Source from the content-addressed store, hash-verified

69 }
70
71 generateAcceptValue(secWebSocketKey) {
72 return crypto
73 .createHash('sha1')
74 .update(secWebSocketKey + '258EAFA5-E914-47DA-95CA-C5AB0DC85B11', 'binary')
75 .digest('base64');
76 }
77
78 decodeMessage(buffer) {
79 const secondByte = buffer[1];

Callers 1

handleUpgradeMethod · 0.95

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected