(method: string, pattern: string)
| 387 | } |
| 388 | |
| 389 | private matchesPattern(method: string, pattern: string): boolean { |
| 390 | if (pattern === "*" || pattern === method) return true |
| 391 | if (pattern.endsWith("/*")) return method.startsWith(pattern.slice(0, -1)) |
| 392 | return false |
| 393 | } |
| 394 | |
| 395 | private canReceiveNotification(method: string, connection: RuntimeConnection): boolean { |
| 396 | if (!connection.notificationPermissions || connection.notificationPermissions.length === 0) return true |
no outgoing calls
no test coverage detected