chore: use this.res.socket insteadof this.ctx.req.socket (#1177)

prefer a shorter path to the object
This commit is contained in:
initial-wu 2018-04-27 23:51:47 +08:00 committed by Yiyu He
parent 45903f228a
commit 148f26f630

View file

@ -33,7 +33,7 @@ module.exports = {
*/
get socket() {
return this.ctx.req.socket;
return this.res.socket;
},
/**