Class

TaskDispatcher

TaskDispatcher(socket)

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

View Source puppeteer/task-dispatcher.js, line 8

Methods

execute(type, params) → {Promise.<any>}

Execute an instruction and returns the result

Parameters:
Name Type Description
type string
params object

View Source puppeteer/task-dispatcher.js, line 20

the result of the instruction

Promise.<any>