koa-socket
koa-socket copied to clipboard
Error Handling
I'd like to throw errors via ctx.throw
like I do in my routes, in my socket functions. How can I pass an instance of ctx, or app into my socket functions to properly handle my errors in a similar way to those in my route functions?