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

prefer a shorter path to the object
master
initial-wu 2018-04-27 23:51:47 +08:00 committed by Yiyu He
parent 45903f228a
commit 148f26f630
1 changed files with 1 additions and 1 deletions

View File

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