enable

suspend fun enable(args: Network.EnableParameter, mode: CommandMode = CommandMode.DEFAULT)

Enables network tracking, network events will now be delivered to the client.


suspend fun enable(maxTotalBufferSize: Int? = null, maxResourceBufferSize: Int? = null, maxPostDataSize: Int? = null, reportDirectSocketTraffic: Boolean? = null)

Enables network tracking, network events will now be delivered to the client.

Parameters

maxTotalBufferSize

Buffer size in bytes to use when preserving network payloads (XHRs, etc).

maxResourceBufferSize

Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).

maxPostDataSize

Longest post body size (in bytes) that would be included in requestWillBeSent notification

reportDirectSocketTraffic

Whether DirectSocket chunk send/receive events should be reported.