MCPcopy Create free account
hub / github.com/CopilotKit/aimock / computeAcceptKey

Function computeAcceptKey

src/ws-framing.ts:224–228  ·  view source on GitHub ↗
(wsKey: string)

Source from the content-addressed store, hash-verified

222}
223
224export function computeAcceptKey(wsKey: string): string {
225 return createHash("sha1")
226 .update(wsKey + WS_GUID)
227 .digest("base64");
228}
229
230export function upgradeToWebSocket(
231 req: http.IncomingMessage,

Callers 2

upgradeToWebSocketFunction · 0.85
ws-framing.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…