This commit is contained in:
syuilo
2024-02-06 15:41:57 +09:00
parent 7a9434414d
commit 2d6f9b083f
8 changed files with 286 additions and 95 deletions

View File

@@ -40,6 +40,11 @@ class MahjongRoomChannel extends Channel {
this.send('started', {
room: packed,
});
} else if (message.type === 'nextKyoku') {
const packed = this.mahjongService.packState(message.body.room, this.user!);
this.send('nextKyoku', {
state: packed,
});
} else {
this.send(message.type, message.body);
}