MCPcopy Create free account
hub / github.com/Noumena-Network/code / onError

Method onError

src/remote/appServer/client.ts:445–452  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

443 )
444 }
445 const onError = (error: Error) => {
446 cleanup()
447 reject(
448 new Error(
449 `remote app server at ${this.args.websocketUrl} transport failed during initialize: ${error.message}`,
450 ),
451 )
452 }
453 const cleanup = () => {
454 ws.off('message', onMessage)
455 ws.off('close', onClose)

Callers 2

connectMethod · 0.45
connectMethod · 0.45

Calls 1

cleanupFunction · 0.50

Tested by

no test coverage detected