pouchdb-hoodie-sync

on

function
api.on() ->Promise

Option name Type Description
eventName String push, pull, connect, disconnect
handler Function function bound to event

binds event to handler