kvision / pl.treksoft.kvision.electron / ClientRequest / once

once

open fun once(event: String, listener: Function<*>): ClientRequest
open fun once(event: String, listener: Function<*>): ClientRequest
open fun once(event: String, listener: (Error) -> Unit): ClientRequest
open fun once(event: String, listener: Function<*>): ClientRequest

Overrides EventEmitter.once


open fun once(event: String, listener: (authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> Unit): ClientRequest
open fun once(event: String, listener: (statusCode: Number, method: String, redirectUrl: String, responseHeaders: Any) -> Unit): ClientRequest
open fun once(event: String, listener: (response: IncomingMessage) -> Unit): ClientRequest