MCPcopy Create free account
hub / github.com/did-method-plc/did-method-plc / fromPlcError

Method fromPlcError

packages/server/src/error.ts:42–44  ·  view source on GitHub ↗
(err: PlcError)

Source from the content-addressed store, hash-verified

40 * whatever is written to it — leaving the client hanging until it times out.
41 */
42export const ownsUnhandledUpgrade = (req: Request): boolean =>
43 req.ws !== undefined && req.ws.handled === false
44
45const releaseUnhandledUpgrade = (req: Request): boolean => {
46 if (!ownsUnhandledUpgrade(req)) return false
47 req.ws?.socket.destroy()

Callers 1

handlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected