|
@@ -11,6 +11,7 @@ class HomeController extends Controller {
|
|
async exitroom() {
|
|
async exitroom() {
|
|
const { ctx } = this;
|
|
const { ctx } = this;
|
|
const { uid, roomid } = this.ctx.query;
|
|
const { uid, roomid } = this.ctx.query;
|
|
|
|
+ await this.ctx.controller.chat.index();
|
|
const newdata = { uid, roomid };
|
|
const newdata = { uid, roomid };
|
|
this.ctx.socket.emit('message', JSON.stringify(newdata));
|
|
this.ctx.socket.emit('message', JSON.stringify(newdata));
|
|
ctx.body = 'hi, egg';
|
|
ctx.body = 'hi, egg';
|