sendMessageToTarget

suspend fun sendMessageToTarget(args: Target.SendMessageToTargetParameter, mode: CommandMode = CommandMode.DEFAULT)

Deprecated

Sends protocol message over session with given id. Consider using flat mode instead; see commands attachToTarget, setAutoAttach, and crbug.com/991325.


suspend fun sendMessageToTarget(message: String, sessionId: String? = null, targetId: String? = null)

Deprecated

Sends protocol message over session with given id. Consider using flat mode instead; see commands attachToTarget, setAutoAttach, and crbug.com/991325.

Parameters

message

No description

sessionId

Identifier of the session.

targetId

Deprecated.