open class ChromeDPSession
sessionId |
val sessionId: SessionID? |
close |
Closes the web socket connection. suspend fun close(): Unit |
events |
Subscribes to events of the given eventName, converting their payload to instances of E. fun <E> events(eventName: String): Flow<E>
Subscribes to events of the given eventName, converting their payload to instances of E using deserializer. fun <E> events(eventName: String, deserializer: DeserializationStrategy<E>): Flow<E>
Subscribes to events whose names are in the provided deserializers map, converting their payload to subclasses of E using the corresponding deserializer in the map. fun <E> events(deserializers: Map<String, DeserializationStrategy<out E>>): Flow<E> |
request |
suspend fun <I, O> request(methodName: String, requestParams: I?): O
Sends request and captures response from the stream. suspend fun <I, O> request(methodName: String, requestParams: I?, serializer: SerializationStrategy<I>, deserializer: DeserializationStrategy<O>): O |
ChromeBrowserSession |
class ChromeBrowserSession : ChromeDPSession |
ChromeTargetSession |
class ChromeTargetSession : ChromeDPSession |