PairSession

PairSession is returned by Driver#onPair.

Methods

setHandler

setHandler(event, handler)

Register a handler for an event. setHandler accepts async functions that can receive and respond to messages from the pair view.

Parameters

Name Type Description
event
string
handler
PairSession.Handler

Type Definitions

Handler

Handler(data): Promise.<any>

Parameters

Name Type Description
data
any

Returns

Promise.<any>