Web JS
Functions
Link copied to clipboard
fun listenResources(link: String, userAgent: String, headers: Map<String, String>, timeout: Long, executeOnFinish: String? = null, filter: (String?, Map<String, String>?) -> Boolean, callback: (String?, Map<String, String>) -> Unit)
Listen for network resources while loading a page and return the first one that matches the filter.