promisify-event-bind
Bind promisify-event to all EventEmitter's .on
methods
Install
npm install promisify-event-bind
Usage
const promisifyAll = ; ; server
Note that since this is a promise it can only be resolved once (which is what it does).
It's good for one-off events:
const socket = await io;
Not for events that'll fire multiple times with possibly different values:
socket;