Open hoodsy opened 7 years ago
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?
ctx.throw
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?