Constructor
new TaskDispatcher(socket)
Construct a browser puppeteer to control a browser
Parameters:
Name | Type | Description |
---|---|---|
socket |
engine.Socket | A socket toward the browser to control |
Methods
execute(type, params) → {Promise.<any>}
Execute an instruction and returns the result
Parameters:
Name | Type | Description |
---|---|---|
type |
string | |
params |
object |
the result of the instruction
Promise.<any>