diff --git a/lib/response.js b/lib/response.js index fb6b897..f9d5828 100644 --- a/lib/response.js +++ b/lib/response.js @@ -33,7 +33,7 @@ module.exports = { */ get socket() { - return this.ctx.req.socket; + return this.res.socket; }, /**