MCPcopy Create free account
hub / github.com/anomalyco/opencode / verifyClient

Function verifyClient

packages/opencode/test/plugin/openai-ws.test.ts:834–837  ·  view source on GitHub ↗
(_info, callback)

Source from the content-addressed store, hash-verified

832 const server = new WebSocketServer({
833 server: http.server,
834 verifyClient(_info, callback) {
835 onAttempt()
836 callback(false, 401, "denied")
837 },
838 })
839 return websocketServerHandle(server, http)
840}

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected