(method: string, handler: (params: unknown) => void)
| 335 | }, |
| 336 | |
| 337 | onNotification(method: string, handler: (params: unknown) => void): void { |
| 338 | if (!connection) { |
| 339 | // Queue handler for application when connection is ready (lazy initialization) |
| 340 | pendingHandlers.push({ method, handler }) |
| 341 | logForDebugging( |
| 342 | `Queued notification handler for ${serverName}.${method} (connection not ready)`, |
| 343 | ) |
| 344 | return |
| 345 | } |
| 346 | |
| 347 | checkStartFailed() |
| 348 | |
| 349 | connection.onNotification(method, handler) |
| 350 | }, |
| 351 | |
| 352 | onRequest<TParams, TResult>( |
| 353 | method: string, |
nothing calls this directly
no test coverage detected