(method: string, params?: unknown)
| 368 | } |
| 369 | |
| 370 | notify(method: string, params?: unknown): void { |
| 371 | const notification = this.recordNotification(method, params) |
| 372 | for (const entry of this.connections.values()) { |
| 373 | if (this.matchesSubscription(notification, entry)) { |
| 374 | entry.connection.send(notification) |
| 375 | } |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | private recordNotification(method: string, params?: unknown): RuntimeNotification { |
| 380 | const notification: RuntimeNotification = params === undefined ? { method } : { method, params } |