liuyu 4 years ago
parent
commit
76bd36276d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/controller/home.js

+ 1 - 1
app/controller/home.js

@@ -15,7 +15,7 @@ class HomeController extends Controller {
     const newdata = { uid, roomid };
     ctx.app.io.of('/').emit('message', JSON.stringify(newdata));
     // await this.ctx.socket.emit('message', JSON.stringify(newdata));
-    ctx.body = 'hi, egg';
+    ctx.body = newdata;
   }
 }