happner / happner-2

MIT License
1 stars 1 forks source link

event .on() promise never resolves if options object passed in #290

Closed JensEggers closed 4 years ago

JensEggers commented 4 years ago

found in happner-2@11.2.13

this resolves:

const handle = await this.mesh.event.pe.on(eventName, (data, _meta) =>
      subscription.publish([data, _meta])
    )

this doesn't:

const handle = await this.mesh.event.pe.on(eventName, {count: 10}, (data, _meta) =>
      subscription.publish([data, _meta])
    )