(method: string, connection: RuntimeConnection)
| 393 | } |
| 394 | |
| 395 | private canReceiveNotification(method: string, connection: RuntimeConnection): boolean { |
| 396 | if (!connection.notificationPermissions || connection.notificationPermissions.length === 0) return true |
| 397 | return connection.notificationPermissions.some((permission) => this.matchesPattern(method, permission)) |
| 398 | } |
| 399 | |
| 400 | private matchesSubscription(notification: RuntimeNotification, entry: ConnectedRuntimeConnection): boolean { |
| 401 | return this.canReceiveNotification(notification.method, entry.connection) && (entry.subscriptions.has("*") || entry.subscriptions.has(notification.method)) |
no test coverage detected