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

Function onNotification

src/services/lsp/LSPServerInstance.ts:445–450  ·  view source on GitHub ↗

* Registers a handler for LSP notifications from the server. * * @param method - LSP notification method (e.g., 'window/logMessage') * @param handler - Callback function to handle the notification

(
    method: string,
    handler: (params: unknown) => void,
  )

Source from the content-addressed store, hash-verified

443 * @param handler - Callback function to handle the notification
444 */
445 function onNotification(
446 method: string,
447 handler: (params: unknown) => void,
448 ): void {
449 client.onNotification(method, handler)
450 }
451
452 /**
453 * Registers a handler for LSP requests from the server.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected