koa-socket icon indicating copy to clipboard operation
koa-socket copied to clipboard

Error Handling

Open hoodsy opened this issue 8 years ago • 0 comments

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?

hoodsy avatar Oct 01 '16 16:10 hoodsy