koa-socket.io
koa-socket.io copied to clipboard
[Request] Have functions return a promise
Since the server class is already wrapping the socket.io functions would it be possible to return a promise to keep true to the async await style. Especially since:
an Async Function always returns a Promise. That promise is rejected in the case of uncaught
exceptions, and it’s otherwise resolved to the return value of the async function.
This enables us to invoke an async function and mix that with regular promise-based continuation
as well.
https://ponyfoo.com/articles/understanding-javascript-async-await